Package | Description |
---|---|
org.apache.logging.log4j.core.config |
Configuration of Log4j 2.
|
Modifier and Type | Class and Description |
---|---|
class |
AwaitCompletionReliabilityStrategy
ReliabilityStrategy that counts the number of threads that have started to log an event but have not completed yet,
and waits for these threads to finish before allowing the appenders to be stopped.
|
class |
AwaitUnconditionallyReliabilityStrategy
Reliability strategy that sleeps unconditionally for some time before allowing a Configuration to be stopped.
|
class |
DefaultReliabilityStrategy
Reliability strategy that assumes reconfigurations will never take place.
|
class |
LockingReliabilityStrategy
ReliabilityStrategy that uses read/write locks to prevent the LoggerConfig from stopping while it is in use.
|
Modifier and Type | Field and Description |
---|---|
private ReliabilityStrategy |
LoggerConfig.reliabilityStrategy |
Modifier and Type | Method and Description |
---|---|
ReliabilityStrategy |
LoggerConfig.getReliabilityStrategy()
Returns the object responsible for ensuring log events are delivered to a working appender, even during or after
a reconfiguration.
|
static ReliabilityStrategy |
ReliabilityStrategyFactory.getReliabilityStrategy(LoggerConfig loggerConfig)
Returns a new
ReliabilityStrategy instance based on the value of system property
log4j.ReliabilityStrategy . |
ReliabilityStrategy |
Configuration.getReliabilityStrategy(LoggerConfig loggerConfig) |
ReliabilityStrategy |
AbstractConfiguration.getReliabilityStrategy(LoggerConfig loggerConfig) |