From 602ba0e1c81db0d2130be2ed44540f962241df1f Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Thu, 9 Jun 2022 16:34:43 +0600 Subject: [PATCH] fill changelog --- CHANGELOG.md | 4 ++++ src/jvmMain/kotlin/ActualLogger.kt | 8 ++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fc10ce..b4f451d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/jvmMain/kotlin/ActualLogger.kt b/src/jvmMain/kotlin/ActualLogger.kt index c4d1a94..1164043 100644 --- a/src/jvmMain/kotlin/ActualLogger.kt +++ b/src/jvmMain/kotlin/ActualLogger.kt @@ -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)