Package com.iizix.log.slf4j
Class LogServiceProvider
java.lang.Object
com.iizix.log.slf4j.LogServiceProvider
- All Implemented Interfaces:
org.slf4j.spi.SLF4JServiceProvider
The service provider for the IIZI implementation for SLF4J.
- Author:
- Christopher Mindus
Constructor Summary
Method Summary
Modifier and TypeMethodDescriptionorg.slf4j.ILoggerFactory
Return the instance ofILoggerFactory
thatLoggerFactory
class should bind to.org.slf4j.IMarkerFactory
Return the instance ofIMarkerFactory
thatMarkerFactory
class should bind to.org.slf4j.spi.MDCAdapter
Return the instance ofMDCAdapter
thatMDC
should bind to.The requested API version of this service provider.void
Initialize the logging back-end.
Constructor Details
LogServiceProvider
public LogServiceProvider()Constructor.
Method Details
getLoggerFactory
public org.slf4j.ILoggerFactory getLoggerFactory()Return the instance ofILoggerFactory
thatLoggerFactory
class should bind to.- Specified by:
getLoggerFactory
in interfaceorg.slf4j.spi.SLF4JServiceProvider
- Returns:
- instance of
ILoggerFactory
getMarkerFactory
public org.slf4j.IMarkerFactory getMarkerFactory()Return the instance ofIMarkerFactory
thatMarkerFactory
class should bind to.- Specified by:
getMarkerFactory
in interfaceorg.slf4j.spi.SLF4JServiceProvider
- Returns:
- instance of
IMarkerFactory
getMDCAdapter
public org.slf4j.spi.MDCAdapter getMDCAdapter()Return the instance ofMDCAdapter
thatMDC
should bind to.- Specified by:
getMDCAdapter
in interfaceorg.slf4j.spi.SLF4JServiceProvider
- Returns:
- instance of
MDCAdapter
getRequestedApiVersion
The requested API version of this service provider.- Specified by:
getRequestedApiVersion
in interfaceorg.slf4j.spi.SLF4JServiceProvider
- Returns:
- "2.0.99"
initialize
public void initialize()Initialize the logging back-end.WARNING: This method is intended to be called once by
LoggerFactory
class and from nowhere else.- Specified by:
initialize
in interfaceorg.slf4j.spi.SLF4JServiceProvider