Options
Options of Slf4jProvider. This must be set before calling LoggerFactory.getLogger.
@LogExperimental
class SLF4JKtTest {
private var logger: Logger by Delegates.notNull()
@Test
fun simpleTest() {
Slf4jProvider.Options.setFactory(logFactory)
logger = LoggerFactory.getLogger("SLF4JKtTest")
logger.debug("This is a message")
}
}
Content copied to clipboard
Since
1.3.7
Functions
Link copied to clipboard
Set the ILoggerFactory of the Slf4jProvider.
Link copied to clipboard
Set the IMarkerFactory of the Slf4jProvider.
Link copied to clipboard
Set the MDCAdapter of the Slf4jProvider.