fill changelog

This commit is contained in:
InsanusMokrassar 2022-06-09 16:34:43 +06:00
parent de7f735ad0
commit 602ba0e1c8
2 changed files with 6 additions and 6 deletions

View File

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

View File

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