Made logging name out of type