Companion

Functions

Link copied to clipboard
fun install(unregisterOthers: Boolean = true): Slf4jLoggingAppender

Makes SLF4J the sink for log4k logging: registers a Slf4jLoggingAppender and — by default — unregisters every other logging appender (the default SimpleConsoleLoggingAppender included), so nothing is logged twice. Pass unregisterOthers= false to keep the appenders already registered and add the SLF4J one alongside them.