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 c1fb57f commit ba06cd1Copy full SHA for ba06cd1
1 file changed
app-common/src/main/kotlin/net/thunderbird/app/common/core/logging/LoggerModule.kt
@@ -46,10 +46,16 @@ val appCommonCoreLogger = module {
46
)
47
}
48
49
+ // Setup for sync debug logger
50
+ // Define this list lazily to avoid eager initialization at app startup
51
+ single<List<LogSink>>(qualifier = named(SYNC_DEBUG_LOG), createdAtStart = false) {
52
+ listOf(get<FileLogSink>(named(SYNC_DEBUG_LOG)))
53
+ }
54
+
55
single<CompositeLogSink>(named(SYNC_DEBUG_LOG)) {
56
CompositeLogSink(
57
logLevelProvider = get(),
- sinks = getList(),
58
+ sinks = get<List<LogSink>>(named(SYNC_DEBUG_LOG)),
59
60
61
0 commit comments