Top Fields Constructors Methods
ch.qos.logback.classic.spi

public Class LogbackServiceProvider

extends Object
implements SLF4JServiceProvider
Class Inheritance
All Implemented Interfaces
org.slf4j.spi.SLF4JServiceProvider
Imports
org.slf4j.ILoggerFactory, .IMarkerFactory, org.slf4j.helpers.BasicMarkerFactory, .Util, org.slf4j.spi.MDCAdapter, .SLF4JServiceProvider, ch.qos.logback.classic.LoggerContext, ch.qos.logback.classic.util.ContextInitializer, .LogbackMDCAdapter, ch.qos.logback.core.CoreConstants, ch.qos.logback.core.joran.spi.JoranException, ch.qos.logback.core.status.StatusUtil, ch.qos.logback.core.util.StatusPrinter

Field Summary

Modifier and TypeField and Description
private LoggerContext
private IMarkerFactory
private LogbackMDCAdapter
pack-priv static final String
public static String
REQUESTED_API_VERSION

Declare the version of the SLF4J API this implementation is compiled against.

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 void
initialize()

Implements org.slf4j.spi.SLF4JServiceProvider.initialize.

Initialize the logging back-end.
private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

defaultLoggerContextback to summary
private LoggerContext defaultLoggerContext
markerFactoryback to summary
private IMarkerFactory markerFactory
mdcAdapterback to summary
private LogbackMDCAdapter mdcAdapter
NULL_CS_URLback to summary
pack-priv static final String NULL_CS_URL
REQUESTED_API_VERSIONback to summary
public static 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

LogbackServiceProviderback to summary
public LogbackServiceProvider()

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.

Returns:ILoggerFactory

instance of ILoggerFactory

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.

Returns:IMarkerFactory

instance of IMarkerFactory

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.

Returns:MDCAdapter

instance of MDCAdapter

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".

Returns:String

the string API version.

Annotations
@Override
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
initializeLoggerContextback to summary
private void initializeLoggerContext()