Package org.smallmind.scribe.pen
Enum RecordElement
- java.lang.Object
-
- java.lang.Enum<RecordElement>
-
- org.smallmind.scribe.pen.RecordElement
-
- All Implemented Interfaces:
Serializable,Comparable<RecordElement>
public enum RecordElement extends Enum<RecordElement>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DATELEVELLOGGER_CONTEXTLOGGER_NAMEMESSAGEMILLISECONDSPARAMETERSSTACK_TRACETHREAD
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RecordElementvalueOf(String name)Returns the enum constant of this type with the specified name.static RecordElement[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DATE
public static final RecordElement DATE
-
MILLISECONDS
public static final RecordElement MILLISECONDS
-
LOGGER_NAME
public static final RecordElement LOGGER_NAME
-
LEVEL
public static final RecordElement LEVEL
-
MESSAGE
public static final RecordElement MESSAGE
-
THREAD
public static final RecordElement THREAD
-
LOGGER_CONTEXT
public static final RecordElement LOGGER_CONTEXT
-
PARAMETERS
public static final RecordElement PARAMETERS
-
STACK_TRACE
public static final RecordElement STACK_TRACE
-
-
Method Detail
-
values
public static RecordElement[] 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 (RecordElement c : RecordElement.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RecordElement 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
-
-