File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
core/logging/config/src/commonMain/kotlin/net/thunderbird/core/logging/config Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2,16 +2,16 @@ package net.thunderbird.core.logging.config
22
33import net.thunderbird.core.logging.composite.CompositeLogSink
44import net.thunderbird.core.logging.file.FileLogSink
5- import timber.log.Timber
65
76class DebugLogConfigurator (
87 private val syncDebugCompositeSink : CompositeLogSink ,
98 private val syncDebugFileLogSink : FileLogSink ,
109) {
1110 fun updateLoggingStatus (isDebugLoggingEnabled : Boolean ) {
12- Timber . Forest .uprootAll ()
11+ syncDebugCompositeSink.manager.removeAll ()
1312 if (isDebugLoggingEnabled) {
14- Timber .Forest .plant(Timber .DebugTree ())
13+ syncDebugCompositeSink.manager.add(syncDebugCompositeSink)
14+ syncDebugCompositeSink.manager.add(syncDebugFileLogSink)
1515 }
1616 }
1717
You can’t perform that action at this time.
0 commit comments