Options

object Options(source)

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")
}

}

Since

1.3.7

Properties

Link copied to clipboard
Link copied to clipboard
internal var slf4jMarkerFactory: IMarkerFactory
Link copied to clipboard
internal var slf4jMDCAdapter: MDCAdapter

Functions

Link copied to clipboard

Set the ILoggerFactory of the Slf4jProvider.

Link copied to clipboard
fun setMarkerFactory(markerFactory: IMarkerFactory)

Set the IMarkerFactory of the Slf4jProvider.

Link copied to clipboard
fun setMDCAdapter(mdcAdapter: MDCAdapter)

Set the MDCAdapter of the Slf4jProvider.