mirror of
https://github.com/InsanusMokrassar/KSLog.git
synced 2024-11-18 06:03:47 +00:00
fill changelog
This commit is contained in:
parent
de7f735ad0
commit
602ba0e1c8
@ -2,6 +2,10 @@
|
||||
|
||||
## 0.3.0
|
||||
|
||||
* **BREAKING CHANGE**: Filters will not accept message since this update
|
||||
* New `KSLog` realization `DefaultKSLog`
|
||||
* Now platforms realize their default loggers callbacks instead of `KSLog` factories
|
||||
|
||||
## 0.2.0
|
||||
|
||||
* Full rewrite of API
|
||||
|
@ -42,9 +42,7 @@ fun KSLog(
|
||||
messageFormatter: MessageFormatter = defaultMessageFormatter
|
||||
): KSLog {
|
||||
val levels = levels.toSet()
|
||||
return KSLog (defaultTag, logger, { l, _, _ ->
|
||||
l in levels
|
||||
}, messageFormatter)
|
||||
return KSLog (defaultTag, logger, { l, _, _ -> l in levels }, messageFormatter)
|
||||
}
|
||||
|
||||
fun KSLog(
|
||||
@ -61,6 +59,4 @@ fun KSLog(
|
||||
logger: Logger,
|
||||
minLoggingLevel: LogLevel = LogLevel.values().first(),
|
||||
messageFormatter: MessageFormatter = defaultMessageFormatter
|
||||
): KSLog = KSLog (defaultTag, logger, { l, _, _ ->
|
||||
minLoggingLevel.ordinal <= l.ordinal
|
||||
}, messageFormatter)
|
||||
): KSLog = KSLog (defaultTag, logger, { l, _, _ -> minLoggingLevel.ordinal <= l.ordinal }, messageFormatter)
|
||||
|
Loading…
Reference in New Issue
Block a user