File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
core/logging/config/src/androidMain/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
2
2
3
3
import net.thunderbird.core.logging.composite.CompositeLogSink
4
4
import net.thunderbird.core.logging.file.FileLogSink
5
- import timber.log.Timber
6
5
7
6
class DebugLogConfigurator (
8
7
private val syncDebugCompositeSink : CompositeLogSink ,
9
8
private val syncDebugFileLogSink : FileLogSink ,
10
9
) {
11
10
fun updateLoggingStatus (isDebugLoggingEnabled : Boolean ) {
12
- Timber . Forest .uprootAll ()
11
+ syncDebugCompositeSink.manager.removeAll ()
13
12
if (isDebugLoggingEnabled) {
14
- Timber .Forest .plant(Timber .DebugTree ())
13
+ syncDebugCompositeSink.manager.add(syncDebugCompositeSink)
14
+ syncDebugCompositeSink.manager.add(syncDebugFileLogSink)
15
15
}
16
16
}
17
17
You can’t perform that action at this time.
0 commit comments