Package org.slf4j.spi
Interface SLF4JServiceProvider
- All Known Implementing Classes:
NOPServiceProvider,SubstituteServiceProvider
public interface SLF4JServiceProvider
This interface based on
ServiceLoader paradigm.
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
Modifier and TypeMethodDescriptionReturn the instance ofILoggerFactorythatLoggerFactoryclass should bind to.Return the instance ofIMarkerFactorythatMarkerFactoryclass should bind to.Return the instnace ofMDCAdapterthatMDCshould bind to.voidInitialize the logging back-end.
-
Method Details
-
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 instnace ofMDCAdapterthatMDCshould bind to.- Returns:
- instance of
MDCAdapter
-
getRequesteApiVersion
String getRequesteApiVersion() -
initialize
void initialize()Initialize the logging back-end.WARNING: This method is intended to be called once by
LoggerFactoryclass and from nowhere else.
-