com.sap.tc.loggingStandard
Class Level
java.lang.Object
|
+--com.sap.tc.loggingStandard.Level
- All Implemented Interfaces:
- java.io.Serializable
- public class Level
- extends java.lang.Object
- implements java.io.Serializable
This class is equivalent to java.util.logging.Level.
It provides the standard severity levels defined by the SUN API,
and internally maps them to the SAP severities.
- See Also:
- Serialized Form
|
Method Summary |
static Level |
parse(java.lang.String name)
Parse a level name string into a Level.
|
java.lang.String |
toString()
Return the literal name of the severity level. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
OFF
public static final Level OFF
SEVERE
public static final Level SEVERE
WARNING
public static final Level WARNING
INFO
public static final Level INFO
CONFIG
public static final Level CONFIG
FINE
public static final Level FINE
FINER
public static final Level FINER
FINEST
public static final Level FINEST
ALL
public static final Level ALL
parse
public static Level parse(java.lang.String name)
throws java.lang.IllegalArgumentException
- Parse a level name string into a Level.
The argument string may consist of either a level name or an integer value.
For example:
"SEVERE"
"1000"
In this wrapper:
If the pass-in name does not exist, no further new Level will be created,
IllegalArgumentException thrown.
- Parameters:
level - String to be pased- Returns:
- parsed value
- Throws:
NullPointerException - if the name is nulljava.lang.IllegalArgumentException - if the value is neither one of the
known names nor an integer.
toString
public final java.lang.String toString()
- Return the literal name of the severity level.
- Overrides:
toString in class java.lang.Object
- Returns:
- the string name of the Level, for example "INFO".