|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sapportals.portal.prt.logger.Level
This Level class defines a set of standart logging levels that can be used to control logging output.
ILogger, Serialized Form| Field Summary | |
static Level |
ALL
|
static int |
ALL_ID
ALL indicates that all message should be logged. |
static Level |
INFO
|
static int |
INFO_ID
INFO is a message level for informational message. |
static Level |
OFF
|
static int |
OFF_ID
OFF is a special level that can be used to turn off logging. |
static Level |
SEVERE
|
static int |
SEVERE_ID
SEVERE is a message level that indicates a serious failure. |
static Level |
SYSTEM
|
static int |
SYSTEM_ID
This level is used to LOG Information in anycase (like "Portal initialization done") |
static Level |
WARNING
|
static int |
WARNING_ID
WARNING is a message level indicating a potential problem. |
| Constructor Summary | |
protected |
Level(java.lang.String name,
int value)
Constructor for the Level object It is protected to allow subclassing for new constants definition. |
| Method Summary | |
boolean |
equals(java.lang.Object levelObject)
Tests if the level passed in argument is equal to this level. |
static java.util.Enumeration |
getAllLevels()
Returns an enumeration of all existing levels (ALL, INFO, OFF, SEVERE, WARNING) |
int |
intValue()
Gets the integer value for this level. |
static Level |
parse(java.lang.String name)
Parse a level name into a Level. |
java.lang.String |
toString()
Gets the name of this level. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int OFF_ID
public static final Level OFF
public static final int SEVERE_ID
public static final Level SEVERE
public static final int WARNING_ID
public static final Level WARNING
public static final int INFO_ID
public static final Level INFO
public static final int ALL_ID
public static final Level ALL
public static final int SYSTEM_ID
public static final Level SYSTEM
| Constructor Detail |
protected Level(java.lang.String name,
int value)
name - Name of the level.value - The constant value associated to that name.| Method Detail |
public boolean equals(java.lang.Object levelObject)
equals in class java.lang.Objectlevel - The object level to compare.levelObject - public final int intValue()
public final java.lang.String toString()
toString in class java.lang.Object
public static Level parse(java.lang.String name)
throws java.lang.IllegalArgumentException
name - A level name.java.lang.IllegalArgumentException - Thrown if the name passes as an
argument is not one of the known level names.java.lang.IllegalArgumentException - public static java.util.Enumeration getAllLevels()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||