logging in kotlin

Other topics

Remarks:

kotlin.logging

class FooWithLogging {
  companion object: KLogging()

  fun bar() {
    logger.info { "hello $name" }
  }

  fun logException(e: Exception) {
    logger.error(e) { "Error occured" }
  }
}

Using kotlin.logging framework

Contributors

Topic Id: 3258

Example Ids: 11189

This site is not affiliated with any of the contributors.