In `kotlin-logging` you also have lazy evaluation ...
# announcements
p
In
kotlin-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
Copy code
/**
     * Lazy add a log message if isErrorEnabled is true
     */
    fun error(msg: () -> Any?) {
        if (isErrorEnabled) error(msg.invoke().toString())
    }
👍 1