Skip to content

Commit

Permalink
Fix compilation issue with logwriter
Browse files Browse the repository at this point in the history
  • Loading branch information
mythsunwind committed Nov 14, 2023
1 parent 572407c commit 9ccdf6c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

package com.wire.kalium.logic

import co.touchlab.kermit.LogWriter
import com.wire.kalium.cryptography.CryptographyLogger
import com.wire.kalium.logger.KaliumLogLevel
import com.wire.kalium.logger.KaliumLogger
Expand All @@ -40,7 +41,9 @@ object CoreLogger {
CryptographyLogger.init(config = config)
PersistenceLogger.init(config = config)
}
fun setLoggingLevel(level: KaliumLogLevel) {

fun setLoggingLevel(level: KaliumLogLevel, vararg logWriters: LogWriter = emptyArray()) {
kaliumLoggerConfig.setLogLevel(level)
kaliumLoggerConfig.setLogWriterList(logWriters.asList())
}
}

0 comments on commit 9ccdf6c

Please sign in to comment.