Top Description Methods
org.slf4j.spi

public Interface SLF4JServiceProvider

Known Direct Implementers
org.slf4j.helpers.NOP_FallbackServiceProvider, org.slf4j.helpers.SubstituteServiceProvider
Imports
org.slf4j.ILoggerFactory, .IMarkerFactory, .LoggerFactory, .MDC

This interface based on java.util.ServiceLoader paradigm.

It replaces the old static-binding mechanism used in SLF4J versions 1.0.x to 1.7.x.

Author
Ceki G¨lc¨
Since
1.8

Method Summary

Modifier and TypeMethod and Description
public ILoggerFactory

Returns:

instance of ILoggerFactory
getLoggerFactory
()

Return the instance of ILoggerFactory that org.slf4j.LoggerFactory class should bind to.

public IMarkerFactory

Returns:

instance of IMarkerFactory
getMarkerFactory
()

Return the instance of IMarkerFactory that org.slf4j.MarkerFactory class should bind to.

public MDCAdapter

Returns:

instance of MDCAdapter
getMDCAdapter
()

Return the instance of MDCAdapter that MDC should bind to.

public String

Returns:

the string API version.
getRequestedApiVersion
()

Return the maximum API version for SLF4J that the logging implementation supports.

public void
initialize()

Initialize the logging back-end.

Method Detail

getLoggerFactoryback to summary
public ILoggerFactory getLoggerFactory()

Return the instance of ILoggerFactory that org.slf4j.LoggerFactory class should bind to.

Returns:ILoggerFactory

instance of ILoggerFactory

getMarkerFactoryback to summary
public IMarkerFactory getMarkerFactory()

Return the instance of IMarkerFactory that org.slf4j.MarkerFactory class should bind to.

Returns:IMarkerFactory

instance of IMarkerFactory

getMDCAdapterback to summary
public MDCAdapter getMDCAdapter()

Return the instance of MDCAdapter that MDC should bind to.

Returns:MDCAdapter

instance of MDCAdapter

getRequestedApiVersionback to summary
public String getRequestedApiVersion()

Return the maximum API version for SLF4J that the logging implementation supports.

For example: "2.0.1".

Returns:String

the string API version.

initializeback to summary
public void initialize()

Initialize the logging back-end.

Warning

This method is intended to be called once by LoggerFactory class and from nowhere else.