Package org.slf4j.helpers
Class NOPServiceProvider
java.lang.Object
org.slf4j.helpers.NOPServiceProvider
- All Implemented Interfaces:
SLF4JServiceProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic StringDeclare the version of the SLF4J API this implementation is compiled against. -
Constructor Summary
Constructors -
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.
-
Field Details
-
REQUESTED_API_VERSION
Declare the version of the SLF4J API this implementation is compiled against. The value of this field is modified with each major release.
-
-
Constructor Details
-
NOPServiceProvider
public NOPServiceProvider()
-
-
Method Details
-
getLoggerFactory
Description copied from interface:SLF4JServiceProviderReturn the instance ofILoggerFactorythatLoggerFactoryclass should bind to.- Specified by:
getLoggerFactoryin interfaceSLF4JServiceProvider- Returns:
- instance of
ILoggerFactory
-
getMarkerFactory
Description copied from interface:SLF4JServiceProviderReturn the instance ofIMarkerFactorythatMarkerFactoryclass should bind to.- Specified by:
getMarkerFactoryin interfaceSLF4JServiceProvider- Returns:
- instance of
IMarkerFactory
-
getMDCAdapter
Description copied from interface:SLF4JServiceProviderReturn the instnace ofMDCAdapterthatMDCshould bind to.- Specified by:
getMDCAdapterin interfaceSLF4JServiceProvider- Returns:
- instance of
MDCAdapter
-
getRequesteApiVersion
- Specified by:
getRequesteApiVersionin interfaceSLF4JServiceProvider
-
initialize
public void initialize()Description copied from interface:SLF4JServiceProviderInitialize the logging back-end.WARNING: This method is intended to be called once by
LoggerFactoryclass and from nowhere else.- Specified by:
initializein interfaceSLF4JServiceProvider
-