public class Severities extends Object
| Modifier and Type | Field and Description | 
|---|---|
static int | 
ALERT
A particular service is in an unusable state. 
 | 
static String | 
ALERT_TEXT
Severity ALERT denoted by the value "Alert" 
 | 
static int | 
CRITICAL
A system or service level error has occured. 
 | 
static String | 
CRITICAL_TEXT
Severity CRITICAL denoted by the value "Critical" 
 | 
static int | 
DEBUG
A debug message. 
 | 
static String | 
DEBUG_TEXT
Severity DEBUG denoted by the value "Debug" 
 | 
static int | 
EMERGENCY
The server is in an unusable state. 
 | 
static String | 
EMERGENCY_TEXT
Severity EMERGENCY denoted by the value "Emergency" 
 | 
static int | 
ERROR
A user level error has occured. 
 | 
static String | 
ERROR_TEXT
Severity ERROR denoted by the value "Error" 
 | 
static int | 
INFO
An informational message. 
 | 
static String | 
INFO_TEXT
Severity INFO denoted by the value "Info" 
 | 
static int | 
NOTICE
A particularly important warning or informational message. 
 | 
static String | 
NOTICE_TEXT
Severity NOTICE denoted by the value "Notice" 
 | 
static int | 
OFF
All messages are turned off. 
 | 
static String | 
OFF_TEXT
Severity OFF denoted by the value "Off" 
 | 
static int | 
TRACE
A trace message. 
 | 
static String | 
TRACE_TEXT
Severity TRACE denoted by the value "Trace" 
 | 
static int | 
WARNING
A warning message. 
 | 
static String | 
WARNING_TEXT
Severity WARNING denoted by the value "Warning" 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static int | 
getSeverity(Level level)
Maps a Level object to a severity code. 
 | 
public static final int OFF
public static final String OFF_TEXT
public static final int EMERGENCY
public static final String EMERGENCY_TEXT
public static final int ALERT
public static final String ALERT_TEXT
public static final int CRITICAL
public static final String CRITICAL_TEXT
public static final int ERROR
public static final String ERROR_TEXT
public static final int WARNING
public static final String WARNING_TEXT
public static final int NOTICE
public static final String NOTICE_TEXT
public static final int INFO
public static final String INFO_TEXT
public static final int DEBUG
public static final String DEBUG_TEXT
public static final int TRACE
public static final String TRACE_TEXT
public static int getSeverity(Level level)