Enum Severity

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Severity>

    public enum Severity
    extends java.lang.Enum<Severity>
    Log record severity options.
    Since:
    1.27.0
    • Enum Constant Detail

      • UNDEFINED_SEVERITY_NUMBER

        public static final Severity UNDEFINED_SEVERITY_NUMBER
      • TRACE

        public static final Severity TRACE
      • TRACE2

        public static final Severity TRACE2
      • TRACE3

        public static final Severity TRACE3
      • TRACE4

        public static final Severity TRACE4
      • DEBUG

        public static final Severity DEBUG
      • DEBUG2

        public static final Severity DEBUG2
      • DEBUG3

        public static final Severity DEBUG3
      • DEBUG4

        public static final Severity DEBUG4
      • INFO

        public static final Severity INFO
      • INFO2

        public static final Severity INFO2
      • INFO3

        public static final Severity INFO3
      • INFO4

        public static final Severity INFO4
      • WARN

        public static final Severity WARN
      • WARN2

        public static final Severity WARN2
      • WARN3

        public static final Severity WARN3
      • WARN4

        public static final Severity WARN4
      • ERROR

        public static final Severity ERROR
      • ERROR2

        public static final Severity ERROR2
      • ERROR3

        public static final Severity ERROR3
      • ERROR4

        public static final Severity ERROR4
      • FATAL

        public static final Severity FATAL
      • FATAL2

        public static final Severity FATAL2
      • FATAL3

        public static final Severity FATAL3
      • FATAL4

        public static final Severity FATAL4
    • Field Detail

      • severityNumber

        private final int severityNumber
    • Constructor Detail

      • Severity

        private Severity​(int severityNumber)
    • Method Detail

      • values

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

        public static Severity 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
      • getSeverityNumber

        public int getSeverityNumber()