diff --git a/api/src/commonTest/kotlin/com.giancarlobuenaflor.kflogger/KFluentLoggerTest.kt b/api/src/commonTest/kotlin/com.giancarlobuenaflor.kflogger/KFluentLoggerTest.kt index be6aecf..03a8f85 100644 --- a/api/src/commonTest/kotlin/com.giancarlobuenaflor.kflogger/KFluentLoggerTest.kt +++ b/api/src/commonTest/kotlin/com.giancarlobuenaflor.kflogger/KFluentLoggerTest.kt @@ -1,11 +1,11 @@ package com.giancarlobuenaflor.kflogger import kotlin.test.Test -val logger = KFluentLogger.forEnclosingClass() class KFluentLoggerTest { @Test fun testNotCrashing() { + val logger = KFluentLogger.forEnclosingClass() logger.atInfo().log("Hello, world! %s", "test") logger.atWarning().log("Hello, world!") logger.atSevere().log("Hello, world!") diff --git a/api/src/jvmMain/java/com/giancarlobuenaflor/kflogger/backend/system/AbstractLogRecord.java b/api/src/jvmMain/java/com/giancarlobuenaflor/kflogger/backend/system/AbstractLogRecord.java index 2c8d52d..16cb3d3 100644 --- a/api/src/jvmMain/java/com/giancarlobuenaflor/kflogger/backend/system/AbstractLogRecord.java +++ b/api/src/jvmMain/java/com/giancarlobuenaflor/kflogger/backend/system/AbstractLogRecord.java @@ -183,7 +183,6 @@ public final String getMessage() { if (cachedMessage != null) { return cachedMessage; } - System.out.println(data.getTemplateContext().getMessage()); String formattedMessage = getLogMessageFormatter().format(data, metadata); super.setMessage(formattedMessage); return formattedMessage; diff --git a/api/src/jvmMain/java/com/giancarlobuenaflor/kflogger/backend/system/SimpleLoggerBackend.java b/api/src/jvmMain/java/com/giancarlobuenaflor/kflogger/backend/system/SimpleLoggerBackend.java index 4116d31..10cf9de 100644 --- a/api/src/jvmMain/java/com/giancarlobuenaflor/kflogger/backend/system/SimpleLoggerBackend.java +++ b/api/src/jvmMain/java/com/giancarlobuenaflor/kflogger/backend/system/SimpleLoggerBackend.java @@ -30,7 +30,6 @@ public SimpleLoggerBackend(Logger logger) { @Override public void log(LogData data) { - System.out.println("SimpleLoggerBackend.log(LogData data) " + data.getTemplateContext().getMessage()); log(SimpleLogRecord.create(data, Platform.getInjectedMetadata()), data.wasForced()); } diff --git a/gradle.properties b/gradle.properties index 1ffeb52..8522ff4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -14,4 +14,4 @@ kotlin.mpp.androidSourceSetLayoutVersion=2 #Publication groupName=com.giancarlobuenaflor -versionName=0.0.2 +versionName=0.0.3