mirror of
https://github.com/InsanusMokrassar/KSLog.git
synced 2024-12-22 22:17:15 +00:00
small improvements in KSLog
This commit is contained in:
parent
a2b497d0f9
commit
a71405aff5
@ -3,6 +3,7 @@
|
|||||||
## 1.1.0
|
## 1.1.0
|
||||||
|
|
||||||
* `Kotlin`: `1.8.20`
|
* `Kotlin`: `1.8.20`
|
||||||
|
* Standard factory `KSLog` with `String` arg now use `TagLogger`
|
||||||
|
|
||||||
## 1.0.0
|
## 1.0.0
|
||||||
|
|
||||||
|
@ -68,7 +68,11 @@ internal val printlnLogging: (level: LogLevel, tag: String, message: Any, throwa
|
|||||||
|
|
||||||
fun KSLog(
|
fun KSLog(
|
||||||
defaultTag: String,
|
defaultTag: String,
|
||||||
messageFormatter: MessageFormatter = defaultMessageFormatter
|
): KSLog = TagLogger(defaultTag)
|
||||||
|
|
||||||
|
fun KSLog(
|
||||||
|
defaultTag: String,
|
||||||
|
messageFormatter: MessageFormatter
|
||||||
): KSLog = DefaultKSLog(
|
): KSLog = DefaultKSLog(
|
||||||
defaultTag,
|
defaultTag,
|
||||||
messageFormatter
|
messageFormatter
|
||||||
@ -79,11 +83,10 @@ fun KSLog(
|
|||||||
defaultTag: String,
|
defaultTag: String,
|
||||||
filter: MessageFilter,
|
filter: MessageFilter,
|
||||||
messageFormatter: MessageFormatter = defaultMessageFormatter
|
messageFormatter: MessageFormatter = defaultMessageFormatter
|
||||||
): KSLog = DefaultKSLog(
|
): KSLog = KSLog (
|
||||||
defaultTag,
|
defaultTag,
|
||||||
filter,
|
|
||||||
messageFormatter
|
messageFormatter
|
||||||
)
|
).filtered(filter)
|
||||||
|
|
||||||
fun KSLog(
|
fun KSLog(
|
||||||
defaultTag: String,
|
defaultTag: String,
|
||||||
|
Loading…
Reference in New Issue
Block a user