support Class<?> in loggers (IDEA-105064)