taggedLogger

This commit is contained in:
2022-07-30 14:15:55 +06:00
parent 437b1675e2
commit be48c2559e
2 changed files with 3 additions and 0 deletions

View File

@@ -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