Class SimpleProvider
- java.lang.Object
-
- org.apache.logging.log4j.spi.Provider
-
- org.apache.logging.log4j.simple.internal.SimpleProvider
-
@NullMarked public final class SimpleProvider extends Provider
AProviderimplementation to useSimpleLoggerContext.- Since:
- 2.24.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSimpleProvider.Config
-
Field Summary
Fields Modifier and Type Field Description private ThreadContextMapthreadContextMap-
Fields inherited from class org.apache.logging.log4j.spi.Provider
CURRENT_VERSION, FACTORY_PRIORITY, LOGGER_CONTEXT_FACTORY, PROVIDER_PROPERTY_NAME, THREAD_CONTEXT_MAP
-
-
Constructor Summary
Constructors Constructor Description SimpleProvider()
-
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
-
threadContextMap
private final ThreadContextMap threadContextMap
-
-
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.
-
-