mirror of
https://github.com/InsanusMokrassar/KSLog.git
synced 2026-10-25 13:27:23 +00:00
taggedLogger
This commit is contained in:
1 parent
437b1675e2
commit
be48c2559e
2 files changed
+3
No files matched your search
@@ -4,3 +4,5 @@ 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
|
||||
Reference in new issue
Block a user