Enum Class Severity

java.lang.Object
java.lang.Enum<Severity>
org.forgerock.audit.handlers.syslog.Severity
All Implemented Interfaces:
Serializable, Comparable<Severity>, Constable

public enum Severity extends Enum<Severity>
Defines the standard Syslog message severities.
See Also:
  • Enum Constant Details

    • 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 Details

    • values

      public static Severity[] 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 Severity 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
    • getCode

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