From e4b64559c45b19833fc7b464a38225b8412eff7a Mon Sep 17 00:00:00 2001 From: dankito Date: Wed, 15 Jul 2020 22:34:52 +0200 Subject: [PATCH] Added thread name to default log output --- .../kotlin/net/dankito/utils/multiplatform/log/LoggerBase.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/commonMain/kotlin/net/dankito/utils/multiplatform/log/LoggerBase.kt b/common/src/commonMain/kotlin/net/dankito/utils/multiplatform/log/LoggerBase.kt index a980864d..e9292de7 100644 --- a/common/src/commonMain/kotlin/net/dankito/utils/multiplatform/log/LoggerBase.kt +++ b/common/src/commonMain/kotlin/net/dankito/utils/multiplatform/log/LoggerBase.kt @@ -2,6 +2,7 @@ package net.dankito.utils.multiplatform.log import net.dankito.utils.multiplatform.Date import net.dankito.utils.multiplatform.DateFormatter +import net.dankito.utils.multiplatform.Thread abstract class LoggerBase( @@ -98,7 +99,7 @@ abstract class LoggerBase( protected open fun createLogOutput(level: LogLevel, message: String): String { - return "${DateFormatter.format(Date())} [$level] $name - $message" + return "${DateFormatter.format(Date())} [$level] ${Thread.current.threadName} $name - $message" } } \ No newline at end of file