mirror of
https://github.com/InsanusMokrassar/KSLog.git
synced 2024-12-22 14:07:15 +00:00
fixes
This commit is contained in:
parent
5f13b11efc
commit
f542dba025
@ -5,6 +5,6 @@ import kotlin.jvm.JvmInline
|
|||||||
@JvmInline
|
@JvmInline
|
||||||
value class TagLogger(val tag: String) : KSLog {
|
value class TagLogger(val tag: String) : KSLog {
|
||||||
override fun performLog(level: LogLevel, tag: String?, message: String, throwable: Throwable?) {
|
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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,7 @@ fun KSJVMLog(
|
|||||||
val text = messageFormatter(l,t ?: defaultTag,m,e)
|
val text = messageFormatter(l,t ?: defaultTag,m,e)
|
||||||
logger.log(
|
logger.log(
|
||||||
when(l) {
|
when(l) {
|
||||||
LogLevel.DEBUG -> Level.ALL
|
LogLevel.DEBUG -> Level.FINEST
|
||||||
LogLevel.VERBOSE -> Level.FINE
|
LogLevel.VERBOSE -> Level.FINE
|
||||||
LogLevel.INFO -> Level.INFO
|
LogLevel.INFO -> Level.INFO
|
||||||
LogLevel.WARNING -> Level.WARNING
|
LogLevel.WARNING -> Level.WARNING
|
||||||
|
Loading…
Reference in New Issue
Block a user