- All Implemented Interfaces:
Serializable
,Comparable<LoggerField>
,Constable
,org.refcodes.mixin.KeyAccessor<String>
,org.refcodes.mixin.TypeAccessor
,org.refcodes.tabular.ColumnAccessor
public enum LoggerField
extends Enum<LoggerField>
implements org.refcodes.tabular.ColumnAccessor, org.refcodes.mixin.KeyAccessor<String>, org.refcodes.mixin.TypeAccessor
Defines default logger
Header
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface org.refcodes.tabular.ColumnAccessor
org.refcodes.tabular.ColumnAccessor.ColumnMutator<T extends Object>, org.refcodes.tabular.ColumnAccessor.ColumnProperty<T extends Object>
Nested classes/interfaces inherited from interface org.refcodes.mixin.KeyAccessor
org.refcodes.mixin.KeyAccessor.KeyBuilder<K extends Object,
B extends org.refcodes.mixin.KeyAccessor.KeyBuilder<K, B>>, org.refcodes.mixin.KeyAccessor.KeyMutator<K extends Object>, org.refcodes.mixin.KeyAccessor.KeyProperty<K extends Object> Nested classes/interfaces inherited from interface org.refcodes.mixin.TypeAccessor
org.refcodes.mixin.TypeAccessor.TypeBuilder<T extends Object,
B extends org.refcodes.mixin.TypeAccessor.TypeBuilder<T, B>>, org.refcodes.mixin.TypeAccessor.TypeMutator<T extends Object>, org.refcodes.mixin.TypeAccessor.TypeProperty<T extends Object> -
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.refcodes.tabular.Column<?>
Gets a predefined column by key (name).org.refcodes.tabular.Column<?>
getKey()
Class<?>
getType()
static LoggerField
toExceptionLoggerField
(org.refcodes.tabular.PrintStackTrace aPrintStackTrace) To exception logger field.static LoggerField
Returns the enum constant of this class with the specified name.static LoggerField[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LOG_LINE_NUMBER
-
LOG_PRIORITY
-
LOG_DATE
-
LOG_THREAD_NAME
-
LOG_SESSION_ID
-
LOG_REQUEST_ID
-
LOG_MESSAGE
-
LOG_NONE_STACKTRRACE_EXCEPTION
-
LOG_COMPACT_STACKTRACE_EXCEPTION
-
LOG_EXPLODED_STACKTRACE_EXCEPTION
-
LOG_FULLY_QUALIFIED_CLASS_NAME
-
LOG_METHODE_NAME
-
LOG_CLASS_LINE_NUMBER
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getColumn
public org.refcodes.tabular.Column<?> getColumn()- Specified by:
getColumn
in interfaceorg.refcodes.tabular.ColumnAccessor
-
getKey
- Specified by:
getKey
in interfaceorg.refcodes.mixin.KeyAccessor<String>
-
getType
- Specified by:
getType
in interfaceorg.refcodes.mixin.TypeAccessor
-
toExceptionLoggerField
public static LoggerField toExceptionLoggerField(org.refcodes.tabular.PrintStackTrace aPrintStackTrace) To exception logger field.- Parameters:
aPrintStackTrace
- the print stack trace- Returns:
- the logger field
-
fromKey
Gets a predefined column by key (name).- Parameters:
aKey
- The key for which to get the column.- Returns:
- The column in question or
null
if none was found.
-