Enum Severity

  • All Implemented Interfaces:
    Serializable, Comparable<Severity>

    public enum Severity
    extends Enum<Severity>
    The severity of the event described in a log entry. These guideline severity levels are ordered, with numerically smaller levels treated as less severe than numerically larger levels. If the source of the log entries uses a different set of severity levels, the client should select the closest corresponding Severity value.
    • Enum Constant Detail

      • NONE

        public static final Severity NONE
        The None severity level. Should not be used with log entries.
      • DEFAULT

        public static final Severity DEFAULT
        The log entry has no assigned severity level.
      • DEBUG

        public static final Severity DEBUG
        Debug or trace information.
      • INFO

        public static final Severity INFO
        Routine information, such as ongoing status or performance.
      • NOTICE

        public static final Severity NOTICE
        Normal but significant events, such as start up, shut down, or configuration.
      • WARNING

        public static final Severity WARNING
        Warning events might cause problems.
      • ERROR

        public static final Severity ERROR
        Error events are likely to cause problems.
      • CRITICAL

        public static final Severity CRITICAL
        Critical events cause more severe problems or brief outages.
      • ALERT

        public static final Severity ALERT
        A person must take an action immediately.
      • EMERGENCY

        public static final Severity EMERGENCY
        One or more systems are unusable.
    • 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​(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 name
        NullPointerException - if the argument is null