Package org.apache.logging.log4j.tojul
Class JULProvider
- java.lang.Object
-
- org.apache.logging.log4j.spi.Provider
-
- org.apache.logging.log4j.tojul.JULProvider
-
@NullMarked public class JULProvider extends Provider
Bind the Log4j API to JUL.
-
-
Field Summary
Fields Modifier and Type Field Description private static LoggerContextFactoryCONTEXT_FACTORY-
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 JULProvider()
-
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
-
-
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.
-
-