public enum Facility extends Enum<Facility>
Numerical Code | Facility |
---|---|
0 | kernel messages |
1 | user-level messages |
2 | mail system |
3 | system daemons |
4 | security/authorization messages |
5 | messages generated internally by syslogd |
6 | line printer subsystem |
7 | network news subsystem |
8 | UUCP subsystem |
9 | clock daemon |
10 | security/authorization messages |
11 | FTP daemon |
12 | NTP subsystem |
13 | log audit |
14 | log alert |
15 | clock daemon (note 2) |
16 | local use 0 (local0) |
17 | local use 1 (local1) |
18 | local use 2 (local2) |
19 | local use 3 (local3) |
20 | local use 4 (local4) |
21 | local use 5 (local5) |
22 | local use 6 (local6) |
23 | local use 7 (local7) |
Enum Constant and Description |
---|
AUTH
Security/Authorization messages.
|
AUTHPRIV
Security/Authorization messages.
|
CLOCK
Clock daemon.
|
CRON
Clock daemon.
|
DAEMON
System daemons.
|
FTP
FTP daemon.
|
KERN
Kernel messages.
|
LOCAL0
Local use 0.
|
LOCAL1
Local use 1.
|
LOCAL2
Local use 2.
|
LOCAL3
Local use 3.
|
LOCAL4
Local use 4.
|
LOCAL5
Local use 5.
|
LOCAL6
Local use 6.
|
LOCAL7
Local use 7.
|
LOG_ALERT
Log alert.
|
LOG_AUDIT
Log audit.
|
LPR
Line printer subsystem.
|
MAIL
Mail system.
|
NEWS
Network news subsystem.
|
NTP
NTP subsystem.
|
SYSLOG
Messages generated by syslogd.
|
USER
User level messages.
|
UUCP
UUCP subsystem.
|
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Retrieve the value of the enumeration.
|
boolean |
isEqual(String name)
Determine if this enumeration matches the specified name (ignoring case).
|
static Facility |
toFacility(String name)
Returns the Facility for the given string.
|
static Facility |
toFacility(String name,
Facility defaultFacility)
Returns the Facility for the given string.
|
static Facility |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Facility[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Facility[] values()
for (Facility c : Facility.values()) System.out.println(c);
public static Facility valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static Facility toFacility(String name)
name
- The Facility enum name, case-insensitive. If null, returns, nullpublic static Facility toFacility(String name, Facility defaultFacility)
name
- The Facility enum name, case-insensitive. If null, returns, defaultFacilitydefaultFacility
- the Facility to return if name is nullpublic int getCode()
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.