loggerFor

inline fun <T : Any> loggerFor(): <Error class: unknown class>

Usually you won't need this method:

  • If you're in a companion object, use contextLogger

  • If you're in an object singleton, use LoggerFactory.getLogger directly on javaClass

Otherwise, this gets the Logger for a class using the syntax

private val log = loggerFor<MyClass>()