Package org.apache.logging.slf4j
Class SLF4JProvider
- java.lang.Object
-
- org.apache.logging.log4j.spi.Provider
-
- org.apache.logging.slf4j.SLF4JProvider
-
@NullMarked public class SLF4JProvider extends Provider
Bind the Log4j API to SLF4J.
-
-
Field Summary
Fields Modifier and Type Field Description private static LoggerContextFactoryCONTEXT_FACTORYprivate static ThreadContextMapTHREAD_CONTEXT_MAP-
Fields inherited from class org.apache.logging.log4j.spi.Provider
CURRENT_VERSION, FACTORY_PRIORITY, LOGGER_CONTEXT_FACTORY, PROVIDER_PROPERTY_NAME
-
-
Constructor Summary
Constructors Constructor Description SLF4JProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoggerContextFactorygetLoggerContextFactory()ThreadContextMapgetThreadContextMapInstance()-
Methods inherited from class org.apache.logging.log4j.spi.Provider
equals, getClassName, getPriority, getThreadContextMap, getUrl, getVersions, hashCode, loadLoggerContextFactory, loadThreadContextMap, toString
-
-
-
-
Field Detail
-
CONTEXT_FACTORY
private static final LoggerContextFactory CONTEXT_FACTORY
-
THREAD_CONTEXT_MAP
private static final ThreadContextMap THREAD_CONTEXT_MAP
-
-
Method Detail
-
getLoggerContextFactory
public LoggerContextFactory getLoggerContextFactory()
- Overrides:
getLoggerContextFactoryin classProvider- Returns:
- The logger context factory to be used by
LogManager.
-
getThreadContextMapInstance
public ThreadContextMap getThreadContextMapInstance()
- Overrides:
getThreadContextMapInstancein classProvider- Returns:
- The thread context map to be used by
ThreadContext.
-
-