public enum EventRoute extends Enum<EventRoute>
AsyncQueueFullPolicy
,
AsyncQueueFullPolicyFactory
,
DefaultAsyncQueueFullPolicy
,
DiscardingAsyncQueueFullPolicy
Enum Constant and Description |
---|
DISCARD
Discards the event (so it is not logged at all).
|
ENQUEUE
Enqueues the event for asynchronous logging in the background thread.
|
SYNCHRONOUS
Logs the event synchronously: sends the event directly to the appender (in the current thread).
|
Modifier and Type | Method and Description |
---|---|
abstract void |
logMessage(AsyncAppender asyncAppender,
LogEvent coreEvent) |
abstract void |
logMessage(AsyncLoggerConfig asyncLoggerConfig,
LogEvent event) |
abstract void |
logMessage(AsyncLogger asyncLogger,
String fqcn,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
org.apache.logging.log4j.message.Message message,
Throwable thrown) |
static EventRoute |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EventRoute[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EventRoute ENQUEUE
public static final EventRoute SYNCHRONOUS
public static final EventRoute DISCARD
public static EventRoute[] values()
for (EventRoute c : EventRoute.values()) System.out.println(c);
public static EventRoute valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract void logMessage(AsyncLogger asyncLogger, String fqcn, org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, org.apache.logging.log4j.message.Message message, Throwable thrown)
public abstract void logMessage(AsyncLoggerConfig asyncLoggerConfig, LogEvent event)
public abstract void logMessage(AsyncAppender asyncAppender, LogEvent coreEvent)
Copyright © 1999-2021 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.