logger
This method allow defining the logger in a file in the following way:
private val logger = KotlinLogging.logger {}
Content copied to clipboard
This method allow defining the logger in a file in the following way:
private val logger = KotlinLogging.logger("io.github.oshai.kotlinlogging.MyLogger")
Content copied to clipboard
In most cases the name represents the package notation of the file that the logger is defined in.