commonMain.logs.KhronicleLogEngine.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kable-log-engine-khronicle-jvm Show documentation
Show all versions of kable-log-engine-khronicle-jvm Show documentation
Kotlin Asynchronous Bluetooth Low Energy
The newest version!
package com.juul.kable.logs.khronicle
import com.juul.kable.logs.LogEngine
import com.juul.khronicle.HideFromStackTraceTag
import com.juul.khronicle.Key
import com.juul.khronicle.Log
public object Kable : Key
public object KhronicleLogEngine : LogEngine, HideFromStackTraceTag {
override fun verbose(throwable: Throwable?, tag: String, message: String) {
Log.verbose(throwable, tag) { metadata ->
metadata[Kable] = true
message
}
}
override fun debug(throwable: Throwable?, tag: String, message: String) {
Log.debug(throwable, tag) { metadata ->
metadata[Kable] = true
message
}
}
override fun info(throwable: Throwable?, tag: String, message: String) {
Log.info(throwable, tag) { metadata ->
metadata[Kable] = true
message
}
}
override fun warn(throwable: Throwable?, tag: String, message: String) {
Log.warn(throwable, tag) { metadata ->
metadata[Kable] = true
message
}
}
override fun error(throwable: Throwable?, tag: String, message: String) {
Log.error(throwable, tag) { metadata ->
metadata[Kable] = true
message
}
}
override fun assert(throwable: Throwable?, tag: String, message: String) {
Log.assert(throwable, tag) { metadata ->
metadata[Kable] = true
message
}
}
}