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)