Enum Class Facility

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

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

    • KERN

      public static final Facility KERN
      Kernel messages.
    • USER

      public static final Facility USER
      User-level messages.
    • MAIL

      public static final Facility MAIL
      Mail system.
    • DAEMON

      public static final Facility DAEMON
      System daemons.
    • AUTH

      public static final Facility AUTH
      Security/authorization messages.
    • SYSLOG

      public static final Facility SYSLOG
      Messages generated internally by syslogd.
    • LPR

      public static final Facility LPR
      Line printer subsystem.
    • NEWS

      public static final Facility NEWS
      Network news subsystem.
    • UUCP

      public static final Facility UUCP
      UUCP subsystem.
    • CRON

      public static final Facility CRON
      Clock daemon.
    • AUTHPRIV

      public static final Facility AUTHPRIV
      Security/authorization messages.
    • FTP

      public static final Facility FTP
      FTP daemon.
    • NTP

      public static final Facility NTP
      NTP subsystem.
    • LOGAUDIT

      public static final Facility LOGAUDIT
      Log audit.
    • LOGALERT

      public static final Facility LOGALERT
      Log alert.
    • CLOCKD

      public static final Facility CLOCKD
      Clock daemon.
    • LOCAL0

      public static final Facility LOCAL0
      Local use 0 (local0).
    • LOCAL1

      public static final Facility LOCAL1
      Local use 1 (local1).
    • LOCAL2

      public static final Facility LOCAL2
      Local use 2 (local2).
    • LOCAL3

      public static final Facility LOCAL3
      Local use 3 (local3).
    • LOCAL4

      public static final Facility LOCAL4
      Local use 4 (local4).
    • LOCAL5

      public static final Facility LOCAL5
      Local use 5 (local5).
    • LOCAL6

      public static final Facility LOCAL6
      Local use 6 (local6).
    • LOCAL7

      public static final Facility LOCAL7
      Local use 7 (local7).
  • Method Details

    • values

      public static Facility[] 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 Facility 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 facility.
      Returns:
      The code.