|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.sap.tc.logging.Severity
Collects constants for use as severities as well as some static utility
methods. The order of the constants is, with increasing severity:
DEBUG, PATH, INFO, WARNING,
ERROR, FATAL.
| Field Summary | |
static int |
ALL
Severity that allows all messages to be written. |
static int |
DEBUG
Recommended severity for debug messages. |
static int |
ERROR
Recommended severity of error messages. |
static int |
FATAL
Recommended severity of fatal error messages. |
static int |
GROUP
Group severity. |
static int |
INFO
Recommended severity for informational messages. |
static int |
MAX
Maximum severity. |
static int |
MIN
Minimum severity. |
static int |
NONE
Severity that prohibits any messages to be written. |
static int |
PATH
Recommended severity for path messages. |
static java.util.List |
VALUES
List of predefined severity levels (unmodifiable). |
static int |
WARNING
Recommended severity of warning messages. |
| Constructor Summary | |
Severity()
|
|
| Method Summary | |
static void |
check(int severity)
Checks whether a severity is within the valid range. |
static int |
correct(int severity)
Corrects an invalid severity to the closest valid value. |
static void |
msgCheck(int severity)
Checks whether a severity is within the valid range for messages. |
static int |
msgCorrect(int severity)
Corrects an invalid severity for a message to the closest valid value. |
static int |
parse(java.lang.String name)
Gets the severity of the symbolic constant with the specified name. |
static java.lang.String |
toString(int severity)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int ALL
public static final int DEBUG
public static final int PATH
public static final int INFO
public static final int WARNING
public static final int ERROR
public static final int FATAL
public static final int MIN
public static final int MAX
public static final int GROUP
public static final int NONE
public static final java.util.List VALUES
| Constructor Detail |
public Severity()
| Method Detail |
public static java.lang.String toString(int severity)
public static void check(int severity)
java.lang.IllegalArgumentException - Specified severity is smaller than
MIN
or larger than
MAX,
and neither
NONE
nor
ALL
nor
GROUPpublic static void msgCheck(int severity)
java.lang.IllegalArgumentException - Specified severity is smaller than
MIN
or larger than
MAXpublic static int correct(int severity)
public static int msgCorrect(int severity)
public static int parse(java.lang.String name)
name - Name of symbolic severity constant. Case INSENSITIVE.java.lang.IllegalArgumentException - Specified name is not a symbolic severity
constant
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||