mirror of
https://github.com/InsanusMokrassar/KSLog.git
synced 2024-06-13 05:15:23 +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)
|
|
}
|