mirror of
https://github.com/InsanusMokrassar/KSLog.git
synced 2025-10-28 18:10:05 +00:00
final fixes before publish
This commit is contained in:
8
src/commonMain/kotlin/AutoLoggers.kt
Normal file
8
src/commonMain/kotlin/AutoLoggers.kt
Normal file
@@ -0,0 +1,8 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user