pawel.barszcz
05/24/2017, 2:25 PMkotlin-logging you also have lazy evaluation through lambdas. This is what I guess after lokking at this code snippet:
https://github.com/MicroUtils/kotlin-logging/blob/master/src/main/kotlin/mu/KLogger.kt#L44
/**
* Lazy add a log message if isErrorEnabled is true
*/
fun error(msg: () -> Any?) {
if (isErrorEnabled) error(msg.invoke().toString())
}