mirror of
https://github.com/InsanusMokrassar/KSLog.git
synced 2024-12-22 14:07:15 +00:00
taggedLogger
This commit is contained in:
parent
437b1675e2
commit
be48c2559e
@ -5,6 +5,7 @@
|
||||
**THIS UPDATE CONTAINS BREAKING CHANGES**
|
||||
|
||||
* **BREAKING CHANGE** Any `KSLog` now accept any object. It was made to allow to work with structured logging
|
||||
* New factory for `TagLogger`: fun `taggedLogger`
|
||||
|
||||
## 0.3.2
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user