We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce62d6b commit a0fa8b6Copy full SHA for a0fa8b6
app-common/src/main/kotlin/net/thunderbird/app/common/core/logging/LoggerModule.kt
@@ -45,10 +45,16 @@ val appCommonCoreLogger = module {
45
)
46
}
47
48
+ // Setup for sync debug logger
49
+ // Define this list lazily to avoid eager initialization at app startup
50
+ single<List<LogSink>>(qualifier = named(SYNC_DEBUG_LOG), createdAtStart = false) {
51
+ listOf(get<FileLogSink>(named(SYNC_DEBUG_LOG)))
52
+ }
53
+
54
single<CompositeLogSink>(named(SYNC_DEBUG_LOG)) {
55
CompositeLogSink(
56
logLevelProvider = get(),
- sinks = getList(),
57
+ sinks = get<List<LogSink>>(named(SYNC_DEBUG_LOG)),
58
59
60
0 commit comments