Enum Severity

    • Enum Constant Detail

      • EMERGENCY

        public static final Severity EMERGENCY
        System is unusable.
      • ALERT

        public static final Severity ALERT
        Action must be taken immediately.
      • CRITICAL

        public static final Severity CRITICAL
        Critical conditions.
      • ERROR

        public static final Severity ERROR
        Error conditions.
      • WARNING

        public static final Severity WARNING
        Warning conditions.
      • NOTICE

        public static final Severity NOTICE
        Normal but significant condition.
      • INFORMATIONAL

        public static final Severity INFORMATIONAL
        Informational messages.
      • DEBUG

        public static final Severity DEBUG
        Debug-level messages.
    • 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
      • getCode

        public int getCode()
        Get the syslog code for the severity.
        Returns:
        The code.