Skip to content

Commit dfe6cde

Browse files
committed
refactor: eliminate direct dependency on timber.log.Timber in DebugLogConfigurator
1 parent 11f11db commit dfe6cde

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/logging/config/src/androidMain/kotlin/net/thunderbird/core/logging/config/DebugLogConfigurator.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ package net.thunderbird.core.logging.config
22

33
import net.thunderbird.core.logging.composite.CompositeLogSink
44
import net.thunderbird.core.logging.file.FileLogSink
5-
import timber.log.Timber
65

76
class 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

0 commit comments

Comments
 (0)