This commit is contained in:
InsanusMokrassar 2022-06-08 21:57:07 +06:00
parent 5f13b11efc
commit f542dba025
2 changed files with 2 additions and 2 deletions

View File

@ -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)
}
}

View File

@ -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