logging in kotlin
Remarks#
Related question: https://stackoverflow.com/q/34416869/986533
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