Package io.dropwizard.logging.json
Enum EventAttribute
- java.lang.Object
-
- java.lang.Enum<EventAttribute>
-
- io.dropwizard.logging.json.EventAttribute
-
- All Implemented Interfaces:
Serializable
,Comparable<EventAttribute>
public enum EventAttribute extends Enum<EventAttribute>
Represents event logging attributes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CALLER_DATA
CONTEXT_NAME
EXCEPTION
LEVEL
LOGGER_NAME
MARKER
MDC
MESSAGE
THREAD_NAME
TIMESTAMP
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EventAttribute
valueOf(String name)
Returns the enum constant of this type with the specified name.static EventAttribute[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LEVEL
public static final EventAttribute LEVEL
-
THREAD_NAME
public static final EventAttribute THREAD_NAME
-
MDC
public static final EventAttribute MDC
-
MARKER
public static final EventAttribute MARKER
-
LOGGER_NAME
public static final EventAttribute LOGGER_NAME
-
MESSAGE
public static final EventAttribute MESSAGE
-
EXCEPTION
public static final EventAttribute EXCEPTION
-
CONTEXT_NAME
public static final EventAttribute CONTEXT_NAME
-
TIMESTAMP
public static final EventAttribute TIMESTAMP
-
CALLER_DATA
public static final EventAttribute CALLER_DATA
-
-
Method Detail
-
values
public static EventAttribute[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EventAttribute c : EventAttribute.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EventAttribute valueOf(String name)
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
-
-