Package org.jboss.logmanager.handlers
Enum SyslogHandler.Severity
- java.lang.Object
-
- java.lang.Enum<SyslogHandler.Severity>
-
- org.jboss.logmanager.handlers.SyslogHandler.Severity
-
- All Implemented Interfaces:
Serializable
,Comparable<SyslogHandler.Severity>
- Enclosing class:
- SyslogHandler
public static enum SyslogHandler.Severity extends Enum<SyslogHandler.Severity>
Severity as defined by RFC-5424 (http://tools.ietf.org/html/rfc5424) and RFC-3164 (http://tools.ietf.org/html/rfc3164).
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SyslogHandler.Severity
fromLevel(Level level)
String
toString()
static SyslogHandler.Severity
valueOf(String name)
Returns the enum constant of this type with the specified name.static SyslogHandler.Severity[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EMERGENCY
public static final SyslogHandler.Severity EMERGENCY
-
ALERT
public static final SyslogHandler.Severity ALERT
-
CRITICAL
public static final SyslogHandler.Severity CRITICAL
-
ERROR
public static final SyslogHandler.Severity ERROR
-
WARNING
public static final SyslogHandler.Severity WARNING
-
NOTICE
public static final SyslogHandler.Severity NOTICE
-
INFORMATIONAL
public static final SyslogHandler.Severity INFORMATIONAL
-
DEBUG
public static final SyslogHandler.Severity DEBUG
-
-
Method Detail
-
values
public static SyslogHandler.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 (SyslogHandler.Severity c : SyslogHandler.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 SyslogHandler.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 nameNullPointerException
- if the argument is null
-
toString
public String toString()
- Overrides:
toString
in classEnum<SyslogHandler.Severity>
-
fromLevel
public static SyslogHandler.Severity fromLevel(Level level)
- Parameters:
level
- the level to map- Returns:
- the severity
-
-