diff --git a/base/src/main/kotlin/de/staropensource/engine/base/EngineConfiguration.kt b/base/src/main/kotlin/de/staropensource/engine/base/EngineConfiguration.kt index 638b290a8..4754bcfba 100644 --- a/base/src/main/kotlin/de/staropensource/engine/base/EngineConfiguration.kt +++ b/base/src/main/kotlin/de/staropensource/engine/base/EngineConfiguration.kt @@ -27,7 +27,7 @@ import de.staropensource.engine.base.implementation.logging.KotlinShutdownHandle import de.staropensource.engine.base.implementation.logging.crashcategory.InfoCrashCategory import de.staropensource.engine.base.implementation.logging.formatbuilder.SOSLSv2FormatBuilder import de.staropensource.engine.base.logging.Logger -import de.staropensource.engine.base.logging.LoggerThreadingHandler +import de.staropensource.engine.base.implementable.logging.LoggerThreadingHandler import de.staropensource.engine.base.type.logging.ChannelSettings import de.staropensource.engine.base.type.logging.Feature import de.staropensource.engine.base.type.logging.Level @@ -166,6 +166,11 @@ class EngineConfiguration private constructor() { */ @JvmStatic var logThreadingHandler: LoggerThreadingHandler? = null + set(value) { + logThreadingHandler?.stop() + logThreadingHandler = value + logThreadingHandler?.start() + } /** * Controls the [FormatBuilder] to use. diff --git a/base/src/main/kotlin/de/staropensource/engine/base/logging/LoggerThreadingHandler.kt b/base/src/main/kotlin/de/staropensource/engine/base/implementable/logging/LoggerThreadingHandler.kt similarity index 94% rename from base/src/main/kotlin/de/staropensource/engine/base/logging/LoggerThreadingHandler.kt rename to base/src/main/kotlin/de/staropensource/engine/base/implementable/logging/LoggerThreadingHandler.kt index 6b7a28bae..3c4b4af7b 100644 --- a/base/src/main/kotlin/de/staropensource/engine/base/logging/LoggerThreadingHandler.kt +++ b/base/src/main/kotlin/de/staropensource/engine/base/implementable/logging/LoggerThreadingHandler.kt @@ -18,8 +18,9 @@ * along with this program. If not, see . */ -package de.staropensource.engine.base.logging +package de.staropensource.engine.base.implementable.logging +import de.staropensource.engine.base.logging.Processor import de.staropensource.engine.base.type.logging.Call /** diff --git a/base/src/main/kotlin/de/staropensource/engine/base/logging/Logger.kt b/base/src/main/kotlin/de/staropensource/engine/base/logging/Logger.kt index c40066748..aae90dbfe 100644 --- a/base/src/main/kotlin/de/staropensource/engine/base/logging/Logger.kt +++ b/base/src/main/kotlin/de/staropensource/engine/base/logging/Logger.kt @@ -21,6 +21,7 @@ package de.staropensource.engine.base.logging import de.staropensource.engine.base.EngineConfiguration +import de.staropensource.engine.base.implementable.logging.LoggerThreadingHandler import de.staropensource.engine.base.type.logging.Call import de.staropensource.engine.base.type.logging.Level import kotlinx.datetime.Clock diff --git a/base/src/main/kotlin/de/staropensource/engine/base/logging/Processor.kt b/base/src/main/kotlin/de/staropensource/engine/base/logging/Processor.kt index 1f20bf88c..e620ee586 100644 --- a/base/src/main/kotlin/de/staropensource/engine/base/logging/Processor.kt +++ b/base/src/main/kotlin/de/staropensource/engine/base/logging/Processor.kt @@ -24,6 +24,7 @@ import de.staropensource.engine.base.EngineConfiguration import de.staropensource.engine.base.implementable.logging.Adapter import de.staropensource.engine.base.implementable.logging.FormatBuilder import de.staropensource.engine.base.implementable.logging.Formatter +import de.staropensource.engine.base.implementable.logging.LoggerThreadingHandler import de.staropensource.engine.base.type.logging.Call import de.staropensource.engine.base.type.logging.ChannelSettings import de.staropensource.engine.base.type.logging.Feature