Top Fields Constructors Methods
org.slf4j.helpers

public Class SubstituteServiceProvider

extends Object
implements SLF4JServiceProvider
Class Inheritance
All Implemented Interfaces
org.slf4j.spi.SLF4JServiceProvider
Imports
org.slf4j.ILoggerFactory, .IMarkerFactory, org.slf4j.spi.MDCAdapter, .SLF4JServiceProvider

Field Summary

Modifier and TypeField and Description
private final SubstituteLoggerFactory
private final IMarkerFactory
private final MDCAdapter

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ILoggerFactory
public IMarkerFactory
public MDCAdapter
getMDCAdapter()

Implements org.slf4j.spi.SLF4JServiceProvider.getMDCAdapter.

Return the instance of MDCAdapter that MDC should bind to.

public String
getRequestedApiVersion()

Implements org.slf4j.spi.SLF4JServiceProvider.getRequestedApiVersion.

Return the maximum API version for SLF4J that the logging implementation supports.

public SubstituteLoggerFactory
public void
initialize()

Implements org.slf4j.spi.SLF4JServiceProvider.initialize.

Initialize the logging back-end.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

loggerFactoryback to summary
private final SubstituteLoggerFactory loggerFactory
markerFactoryback to summary
private final IMarkerFactory markerFactory
mdcAdapterback to summary
private final MDCAdapter mdcAdapter

Constructor Detail

SubstituteServiceProviderback to summary
public SubstituteServiceProvider()

Method Detail

getLoggerFactoryback to summary
public ILoggerFactory getLoggerFactory()

Implements org.slf4j.spi.SLF4JServiceProvider.getLoggerFactory.

Doc from org.slf4j.spi.SLF4JServiceProvider.getLoggerFactory.

Return the instance of ILoggerFactory that org.slf4j.LoggerFactory class should bind to.

Annotations
@Override
getMarkerFactoryback to summary
public IMarkerFactory getMarkerFactory()

Implements org.slf4j.spi.SLF4JServiceProvider.getMarkerFactory.

Doc from org.slf4j.spi.SLF4JServiceProvider.getMarkerFactory.

Return the instance of IMarkerFactory that org.slf4j.MarkerFactory class should bind to.

Annotations
@Override
getMDCAdapterback to summary
public MDCAdapter getMDCAdapter()

Implements org.slf4j.spi.SLF4JServiceProvider.getMDCAdapter.

Doc from org.slf4j.spi.SLF4JServiceProvider.getMDCAdapter.

Return the instance of MDCAdapter that MDC should bind to.

Annotations
@Override
getRequestedApiVersionback to summary
public String getRequestedApiVersion()

Implements org.slf4j.spi.SLF4JServiceProvider.getRequestedApiVersion.

Doc from org.slf4j.spi.SLF4JServiceProvider.getRequestedApiVersion.

Return the maximum API version for SLF4J that the logging implementation supports.

For example: "2.0.1".

Annotations
@Override
getSubstituteLoggerFactoryback to summary
public SubstituteLoggerFactory getSubstituteLoggerFactory()
initializeback to summary
public void initialize()

Implements org.slf4j.spi.SLF4JServiceProvider.initialize.

Doc from org.slf4j.spi.SLF4JServiceProvider.initialize.

Initialize the logging back-end.

Warning

This method is intended to be called once by LoggerFactory class and from nowhere else.

Annotations
@Override