mirror of
https://github.com/InsanusMokrassar/KSLog.git
synced 2024-09-30 06:16:10 +00:00
9 lines
238 B
Kotlin
9 lines
238 B
Kotlin
|
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)
|
||
|
}
|