diff --git a/src/commonMain/kotlin/TagLogger.kt b/src/commonMain/kotlin/TagLogger.kt index 7fe1286..9fc39ac 100644 --- a/src/commonMain/kotlin/TagLogger.kt +++ b/src/commonMain/kotlin/TagLogger.kt @@ -5,6 +5,6 @@ import kotlin.jvm.JvmInline @JvmInline value class TagLogger(val tag: String) : KSLog { override fun performLog(level: LogLevel, tag: String?, message: String, throwable: Throwable?) { - KSLog.performLog(level, tag ?: tag, message, throwable) + KSLog.performLog(level, tag ?: this.tag, message, throwable) } } diff --git a/src/jvmMain/kotlin/ActualLogger.kt b/src/jvmMain/kotlin/ActualLogger.kt index 8f3326b..febe1d6 100644 --- a/src/jvmMain/kotlin/ActualLogger.kt +++ b/src/jvmMain/kotlin/ActualLogger.kt @@ -12,7 +12,7 @@ fun KSJVMLog( val text = messageFormatter(l,t ?: defaultTag,m,e) logger.log( when(l) { - LogLevel.DEBUG -> Level.ALL + LogLevel.DEBUG -> Level.FINEST LogLevel.VERBOSE -> Level.FINE LogLevel.INFO -> Level.INFO LogLevel.WARNING -> Level.WARNING