Enum Class LoggerField

java.lang.Object
java.lang.Enum<LoggerField>
org.refcodes.logger.LoggerField
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.
  • Enum Constant Details

    • LOG_LINE_NUMBER

      public static final LoggerField LOG_LINE_NUMBER
    • LOG_PRIORITY

      public static final LoggerField LOG_PRIORITY
    • LOG_DATE

      public static final LoggerField LOG_DATE
    • LOG_THREAD_NAME

      public static final LoggerField LOG_THREAD_NAME
    • LOG_SESSION_ID

      public static final LoggerField LOG_SESSION_ID
    • LOG_REQUEST_ID

      public static final LoggerField LOG_REQUEST_ID
    • LOG_MESSAGE

      public static final LoggerField LOG_MESSAGE
    • LOG_NONE_STACKTRRACE_EXCEPTION

      public static final LoggerField LOG_NONE_STACKTRRACE_EXCEPTION
    • LOG_COMPACT_STACKTRACE_EXCEPTION

      public static final LoggerField LOG_COMPACT_STACKTRACE_EXCEPTION
    • LOG_EXPLODED_STACKTRACE_EXCEPTION

      public static final LoggerField LOG_EXPLODED_STACKTRACE_EXCEPTION
    • LOG_FULLY_QUALIFIED_CLASS_NAME

      public static final LoggerField LOG_FULLY_QUALIFIED_CLASS_NAME
    • LOG_METHODE_NAME

      public static final LoggerField LOG_METHODE_NAME
    • LOG_CLASS_LINE_NUMBER

      public static final LoggerField LOG_CLASS_LINE_NUMBER
  • Method Details

    • values

      public static LoggerField[] 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

      public static LoggerField valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getColumn

      public org.refcodes.tabular.Column<?> getColumn()
      Specified by:
      getColumn in interface org.refcodes.tabular.ColumnAccessor
    • getKey

      public String getKey()
      Specified by:
      getKey in interface org.refcodes.mixin.KeyAccessor<String>
    • getType

      public Class<?> getType()
      Specified by:
      getType in interface org.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

      public static org.refcodes.tabular.Column<?> fromKey(String aKey)
      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.