Package org.slf4j.spi
Interface SLF4JServiceProvider
-
- All Known Implementing Classes:
NOP_FallbackServiceProvider,SubstituteServiceProvider
public interface SLF4JServiceProvider
This interface based onServiceLoaderparadigm.It replaces the old static-binding mechanism used in SLF4J versions 1.0.x to 1.7.x.
- Since:
- 1.8
- Author:
- Ceki G¨lc¨
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ILoggerFactorygetLoggerFactory()Return the instance ofILoggerFactorythatLoggerFactoryclass should bind to.IMarkerFactorygetMarkerFactory()Return the instance ofIMarkerFactorythatMarkerFactoryclass should bind to.MDCAdaptergetMDCAdapter()Return the instance ofMDCAdapterthatMDCshould bind to.java.lang.StringgetRequestedApiVersion()Return the maximum API version for SLF4J that the logging implementation supports.voidinitialize()Initialize the logging back-end.
-
-
-
Method Detail
-
getLoggerFactory
ILoggerFactory getLoggerFactory()
Return the instance ofILoggerFactorythatLoggerFactoryclass should bind to.- Returns:
- instance of
ILoggerFactory
-
getMarkerFactory
IMarkerFactory getMarkerFactory()
Return the instance ofIMarkerFactorythatMarkerFactoryclass should bind to.- Returns:
- instance of
IMarkerFactory
-
getMDCAdapter
MDCAdapter getMDCAdapter()
Return the instance ofMDCAdapterthatMDCshould bind to.- Returns:
- instance of
MDCAdapter
-
getRequestedApiVersion
java.lang.String getRequestedApiVersion()
Return the maximum API version for SLF4J that the logging implementation supports.For example:
"2.0.1".- Returns:
- the string API version.
-
initialize
void initialize()
Initialize the logging back-end.WARNING: This method is intended to be called once by
LoggerFactoryclass and from nowhere else.
-
-