Package | Description |
---|---|
org.apache.logging.log4j.core.impl |
Log4j 2 private implementation classes.
|
org.apache.logging.log4j.core.util |
Log4j 2 helper classes.
|
Modifier and Type | Class and Description |
---|---|
class |
Log4jContextFactory
Factory to locate a ContextSelector and then load a LoggerContext.
|
Modifier and Type | Field and Description |
---|---|
private ShutdownCallbackRegistry |
Log4jContextFactory.shutdownCallbackRegistry |
Modifier and Type | Method and Description |
---|---|
private static ShutdownCallbackRegistry |
Log4jContextFactory.createShutdownCallbackRegistry() |
ShutdownCallbackRegistry |
Log4jContextFactory.getShutdownCallbackRegistry()
Returns the ShutdownCallbackRegistry
|
Constructor and Description |
---|
Log4jContextFactory(ContextSelector selector,
ShutdownCallbackRegistry shutdownCallbackRegistry)
Constructs a Log4jContextFactory using the provided ContextSelector and ShutdownRegistrationStrategy.
|
Log4jContextFactory(ShutdownCallbackRegistry shutdownCallbackRegistry)
Constructs a Log4jContextFactory using the ContextSelector from
Constants.LOG4J_CONTEXT_SELECTOR
and the provided ShutdownRegistrationStrategy. |
Modifier and Type | Class and Description |
---|---|
class |
DefaultShutdownCallbackRegistry
ShutdownRegistrationStrategy that simply uses
Runtime.addShutdownHook(Thread) . |