Kotlin: Delegate override function how to make work with lambda and function parens

Advertisements I am trying to override the error() method of kotlin-logging. The following code is close to what I want, but I don’t understand a few things (I’m new to Kotlin). Example code: import mu.KLogger import mu.KotlinLogging open class BgrLogging( private val delegate: KLogger ) : KLogger by delegate { override fun error(msg: () ->… Read More Kotlin: Delegate override function how to make work with lambda and function parens