Modified the way class names are logged