commonMain.klog.writers.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of klog-jvm Show documentation
Show all versions of klog-jvm Show documentation
Kotlin multiplatform logging implementation
The newest version!
package klog
import kotlin.native.concurrent.ThreadLocal
typealias KLogWriter = (String, Level, String, Throwable?) -> Unit
@ThreadLocal
object KLogWriters {
val noop: KLogWriter = { _, _, _, _ -> }
var stdOut: KLogWriter = { _, _, msg, _ -> println(msg) }
}