Check out example codes for "kotlin logging". It will help you in understanding the concepts better.

Code Example 1

fun getLogger(): Logger = LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME)

fun getLogger(name: String): Logger = LoggerFactory.getLogger(name)

Learn ReactJs, React Native from akashmittal.com