Package | Description |
---|---|
org.apache.logging.log4j.core.appender |
Log4j 2 Appenders.
|
org.apache.logging.log4j.core.async |
Provides Asynchronous Logger classes and interfaces for low-latency logging.
|
Modifier and Type | Field and Description |
---|---|
private AsyncQueueFullPolicy |
AsyncAppender.asyncQueueFullPolicy |
Modifier and Type | Class and Description |
---|---|
class |
DefaultAsyncQueueFullPolicy
Default: any logging done when queue is full bypasses the queue and logs synchronously: send the event directly to
the appender (in the current thread).
|
class |
DiscardingAsyncQueueFullPolicy
Discarding router extends the DefaultAsyncQueueFullPolicy by first verifying if the queue is fuller than the specified
threshold ratio; if this is the case, log events more specific than
the specified threshold level are dropped.
|
Modifier and Type | Field and Description |
---|---|
private AsyncQueueFullPolicy |
AsyncLoggerConfigDisruptor.asyncQueueFullPolicy |
private AsyncQueueFullPolicy |
AsyncLoggerDisruptor.asyncQueueFullPolicy |
Modifier and Type | Method and Description |
---|---|
static AsyncQueueFullPolicy |
AsyncQueueFullPolicyFactory.create()
Creates and returns
AsyncQueueFullPolicy instances based on user-specified system properties. |
private static AsyncQueueFullPolicy |
AsyncQueueFullPolicyFactory.createCustomRouter(java.lang.String router) |
private static AsyncQueueFullPolicy |
AsyncQueueFullPolicyFactory.createDiscardingAsyncQueueFullPolicy() |
Modifier and Type | Method and Description |
---|---|
static long |
DiscardingAsyncQueueFullPolicy.getDiscardCount(AsyncQueueFullPolicy router) |