mirror of
https://github.com/InsanusMokrassar/KSLog.git
synced 2024-06-29 04:47:44 +00:00
9 lines
228 B
Kotlin
9 lines
228 B
Kotlin
package dev.inmo.kslog.common
|
|
|
|
val Any.logTag
|
|
get() = this::class.simpleName ?: error("Unable to retrieve log tag")
|
|
val Any.logger: KSLog
|
|
get() = TagLogger(logTag)
|
|
|
|
fun taggedLogger(tagBase: Any): KSLog = tagBase.logger
|