|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Severity>
org.apache.logging.log4j.core.net.Severity
public enum Severity
Severity values used by the Syslog system.
Numerical Code | Severity |
---|---|
0 | Emergency: system is unusable |
1 | Alert: action must be taken immediately |
2 | Critical: critical conditions |
3 | Error: error conditions |
4 | Warning: warning conditions |
5 | Notice: normal but significant condition |
6 | Informational: informational messages |
7 | Debug: debug-level messages |
Enum Constant Summary | |
---|---|
ALERT
Action must be taken immediately. |
|
CRITICAL
Critical conditions. |
|
DEBUG
Debug level messages. |
|
EMERG
System is unusable. |
|
ERROR
Error conditions. |
|
INFO
Informational messages. |
|
NOTICE
Normal but significant conditions. |
|
WARNING
Warning conditions. |
Method Summary | |
---|---|
int |
getCode()
Returns the severity code. |
static Severity |
getSeverity(org.apache.logging.log4j.Level level)
Returns the Severity for the specified Level. |
boolean |
isEqual(String name)
Determine if the name matches this Severity. |
static Severity |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Severity[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Severity EMERG
public static final Severity ALERT
public static final Severity CRITICAL
public static final Severity ERROR
public static final Severity WARNING
public static final Severity NOTICE
public static final Severity INFO
public static final Severity DEBUG
Method Detail |
---|
public static Severity[] values()
for (Severity c : Severity.values()) System.out.println(c);
public static Severity valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic int getCode()
public boolean isEqual(String name)
name
- the name to match.
public static Severity getSeverity(org.apache.logging.log4j.Level level)
level
- The Level.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
Copyright © 1999-2015 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.