Package org.slf4j.helpers
Class NOP_FallbackServiceProvider
- java.lang.Object
-
- org.slf4j.helpers.NOP_FallbackServiceProvider
-
- All Implemented Interfaces:
SLF4JServiceProvider
public class NOP_FallbackServiceProvider extends java.lang.Object implements SLF4JServiceProvider
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringREQUESTED_API_VERSIONDeclare the version of the SLF4J API this implementation is compiled against.
-
Constructor Summary
Constructors Constructor Description NOP_FallbackServiceProvider()
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Field Detail
-
REQUESTED_API_VERSION
public static java.lang.String 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 Detail
-
NOP_FallbackServiceProvider
public NOP_FallbackServiceProvider()
-
-
Method Detail
-
getLoggerFactory
public ILoggerFactory getLoggerFactory()
Description copied from interface:SLF4JServiceProviderReturn the instance ofILoggerFactorythatLoggerFactoryclass should bind to.- Specified by:
getLoggerFactoryin interfaceSLF4JServiceProvider- Returns:
- instance of
ILoggerFactory
-
getMarkerFactory
public IMarkerFactory getMarkerFactory()
Description copied from interface:SLF4JServiceProviderReturn the instance ofIMarkerFactorythatMarkerFactoryclass should bind to.- Specified by:
getMarkerFactoryin interfaceSLF4JServiceProvider- Returns:
- instance of
IMarkerFactory
-
getMDCAdapter
public MDCAdapter getMDCAdapter()
Description copied from interface:SLF4JServiceProviderReturn the instance ofMDCAdapterthatMDCshould bind to.- Specified by:
getMDCAdapterin interfaceSLF4JServiceProvider- Returns:
- instance of
MDCAdapter
-
getRequestedApiVersion
public java.lang.String getRequestedApiVersion()
Description copied from interface:SLF4JServiceProviderReturn the maximum API version for SLF4J that the logging implementation supports.For example:
"2.0.1".- Specified by:
getRequestedApiVersionin interfaceSLF4JServiceProvider- Returns:
- the string API version.
-
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
-
-