mirror of
https://github.com/InsanusMokrassar/KSLog.git
synced 2025-10-29 02:20:04 +00:00
fix of #3
This commit is contained in:
@@ -2,7 +2,5 @@ package dev.inmo.kslog.common
|
||||
|
||||
val Any.logTag
|
||||
get() = this::class.simpleName ?: error("Unable to retrieve log tag")
|
||||
val Any.logger
|
||||
get() = CallbackKSLog { l, t, m, e ->
|
||||
KSLog.default.performLog(l, t ?: logTag, m, e)
|
||||
}
|
||||
val Any.logger: KSLog
|
||||
get() = TagLogger(logTag)
|
||||
|
||||
Reference in New Issue
Block a user