From 79a3080bbddb2f56b151e75d71252f91a11c8f8a Mon Sep 17 00:00:00 2001 From: dankito Date: Sun, 12 Jul 2020 18:16:08 +0200 Subject: [PATCH] Using now LogToConsoleLogger on iOS due to many bugs of NSLog under Kotlin --- .../dankito/utils/multiplatform/log/DefaultLoggerFactory.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/src/iosMain/kotlin/net/dankito/utils/multiplatform/log/DefaultLoggerFactory.kt b/common/src/iosMain/kotlin/net/dankito/utils/multiplatform/log/DefaultLoggerFactory.kt index 545207b8..35c3d8ce 100644 --- a/common/src/iosMain/kotlin/net/dankito/utils/multiplatform/log/DefaultLoggerFactory.kt +++ b/common/src/iosMain/kotlin/net/dankito/utils/multiplatform/log/DefaultLoggerFactory.kt @@ -4,7 +4,9 @@ package net.dankito.utils.multiplatform.log actual class DefaultLoggerFactory { actual fun createDefaultLoggerFactory(): ILoggerFactory { - return NSLogLoggerFactory() + // i cannot recommend using NSLog from Kotlin, has many bugs (e.g. cutting messages, printing non Ansi characters in Ansi messages, ...) +// return NSLogLoggerFactory() + return LogToConsoleLoggerFactory() } } \ No newline at end of file