Enum EventRoute
- All Implemented Interfaces:
Serializable,Comparable<EventRoute>
Enumeration over the different destinations where a log event can be sent.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDiscards the event (so it is not logged at all).Enqueues the event for asynchronous logging in the background thread.Logs the event synchronously: sends the event directly to the appender (in the current thread). -
Method Summary
Modifier and TypeMethodDescriptionabstract voidlogMessage(AsyncAppender asyncAppender, LogEvent coreEvent) abstract voidlogMessage(AsyncLoggerConfig asyncLoggerConfig, LogEvent event) abstract voidlogMessage(AsyncLogger asyncLogger, String fqcn, Level level, Marker marker, Message message, Throwable thrown) static EventRouteReturns 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.
-
Enum Constant Details
-
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). WARNING: This may result in lines logged out of order as synchronous events may be persisted before earlier events, even from the same thread, which wait in the queue. -
DISCARD
Discards the event (so it is not logged at all).
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
logMessage
-
logMessage
-
logMessage
-