Enum LoggerField

  • All Implemented Interfaces:
    org.refcodes.mixin.KeyAccessor<java.lang.String>, org.refcodes.mixin.TypeAccessor, org.refcodes.tabular.ColumnAccessor


    public enum LoggerField
    extends java.lang.Enum<LoggerField>
    implements org.refcodes.tabular.ColumnAccessor, org.refcodes.mixin.KeyAccessor<java.lang.String>, org.refcodes.mixin.TypeAccessor
    Defines default logger Header.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.refcodes.tabular.ColumnAccessor

        org.refcodes.tabular.ColumnAccessor.ColumnMutator<T extends java.lang.Object>, org.refcodes.tabular.ColumnAccessor.ColumnProperty<T extends java.lang.Object>
      • Nested classes/interfaces inherited from interface org.refcodes.mixin.KeyAccessor

        org.refcodes.mixin.KeyAccessor.KeyBuilder<K extends java.lang.Object,B extends org.refcodes.mixin.KeyAccessor.KeyBuilder<K,B>>, org.refcodes.mixin.KeyAccessor.KeyMutator<K extends java.lang.Object>, org.refcodes.mixin.KeyAccessor.KeyProperty<K extends java.lang.Object>
      • Nested classes/interfaces inherited from interface org.refcodes.mixin.TypeAccessor

        org.refcodes.mixin.TypeAccessor.TypeMutator<T extends java.lang.Object>, org.refcodes.mixin.TypeAccessor.TypeProperty<T extends java.lang.Object>
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static org.refcodes.tabular.Column<?> fromKey​(java.lang.String aKey)
      Gets a predefined column by key (name).
      org.refcodes.tabular.Column<?> getColumn​()
      java.lang.String getKey​()
      java.lang.Class<?> getType​()
      static LoggerField toExceptionLoggerField​(org.refcodes.tabular.PrintStackTrace aPrintStackTrace)
      To exception logger field.
      static LoggerField valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static LoggerField[] values​()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • LOG_LINE_NUMBER

        public static final LoggerField LOG_LINE_NUMBER
      • LOG_PRIORITY

        public static final LoggerField LOG_PRIORITY
      • 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 Detail

      • values

        public static LoggerField[] 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 (LoggerField c : LoggerField.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static LoggerField valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getColumn

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

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

        public java.lang.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​(java.lang.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.