public enum EventRoute extends java.lang.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,
java.lang.String fqcn,
Level level,
Marker marker,
Message message,
java.lang.Throwable thrown) |
static EventRoute |
valueOf(java.lang.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(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract void logMessage(AsyncLogger asyncLogger, java.lang.String fqcn, Level level, Marker marker, Message message, java.lang.Throwable thrown)
public abstract void logMessage(AsyncLoggerConfig asyncLoggerConfig, LogEvent event)
public abstract void logMessage(AsyncAppender asyncAppender, LogEvent coreEvent)