All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.slf4j.spi.SLF4JServiceProvider Maven / Gradle / Ivy

The newest version!
package org.slf4j.spi;

import org.slf4j.ILoggerFactory;
import org.slf4j.IMarkerFactory;
import org.slf4j.LoggerFactory;
import org.slf4j.MDC;

/**
 * This interface based on {@link java.util.ServiceLoader} paradigm. 
 * 
 * 

It replaces the old static-binding mechanism used in SLF4J versions 1.0.x to 1.7.x. * * @author Ceki G¨lc¨ * @since 1.8 */ public interface SLF4JServiceProvider { /** * Return the instance of {@link ILoggerFactory} that * {@link org.slf4j.LoggerFactory} class should bind to. * * @return instance of {@link ILoggerFactory} */ public ILoggerFactory getLoggerFactory(); /** * Return the instance of {@link IMarkerFactory} that * {@link org.slf4j.MarkerFactory} class should bind to. * * @return instance of {@link IMarkerFactory} */ public IMarkerFactory getMarkerFactory(); /** * Return the instance of {@link MDCAdapter} that * {@link MDC} should bind to. * * @return instance of {@link MDCAdapter} */ public MDCAdapter getMDCAdapter(); /** * Return the maximum API version for SLF4J that the logging * implementation supports. * *

For example: {@code "2.0.1"}. * * @return the string API version. */ public String getRequestedApiVersion(); /** * Initialize the logging back-end. * *

WARNING: This method is intended to be called once by * {@link LoggerFactory} class and from nowhere else. * */ public void initialize(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy