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 SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- org.slf4j.ILoggerFactoryReturn the instance of- ILoggerFactorythat- LoggerFactoryclass should bind to.- org.slf4j.IMarkerFactoryReturn the instance of- IMarkerFactorythat- MarkerFactoryclass should bind to.- org.slf4j.spi.MDCAdapterReturn the instance of- MDCAdapterthat- MDCshould bind to.The requested API version of this service provider.- voidInitialize the logging back-end.
- Constructor Details- LogServiceProviderpublic LogServiceProvider()Constructor.
 
- Method Details- getLoggerFactorypublic org.slf4j.ILoggerFactory getLoggerFactory()Return the instance of- ILoggerFactorythat- LoggerFactoryclass should bind to.- Specified by:
- getLoggerFactoryin interface- org.slf4j.spi.SLF4JServiceProvider
- Returns:
- instance of ILoggerFactory
 
- getMarkerFactorypublic org.slf4j.IMarkerFactory getMarkerFactory()Return the instance of- IMarkerFactorythat- MarkerFactoryclass should bind to.- Specified by:
- getMarkerFactoryin interface- org.slf4j.spi.SLF4JServiceProvider
- Returns:
- instance of IMarkerFactory
 
- getMDCAdapterpublic org.slf4j.spi.MDCAdapter getMDCAdapter()Return the instance of- MDCAdapterthat- MDCshould bind to.- Specified by:
- getMDCAdapterin interface- org.slf4j.spi.SLF4JServiceProvider
- Returns:
- instance of MDCAdapter
 
- getRequestedApiVersionThe requested API version of this service provider.- Specified by:
- getRequestedApiVersionin interface- org.slf4j.spi.SLF4JServiceProvider
- Returns:
- "1.8"
 
- initializepublic void initialize()Initialize the logging back-end.- WARNING: This method is intended to be called once by - LoggerFactoryclass and from nowhere else.- Specified by:
- initializein interface- org.slf4j.spi.SLF4JServiceProvider