|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SK.gnome.dwarf.log.LogLevel
Defines the logging levels.
The logging level represents a priority or an importance of the log message. A higher numerical value of the logging level means higher priority, and vice versa.
The logging services (also called logging adapters) can be setup to accept only messages with the particular logging levels.
The following logging levels are installed by this class automatically, listed from the lowest priority to the highest:
name | numerical level | string description |
LOG_XFER | 0 | "XFER" |
LOG_TRACE | 10 | "TRACE" |
LOG_DEBUG | 20 | "DEBUG" |
LOG_INFO | 30 | "INFO" |
LOG_WARN | 40 | "WARN" |
LOG_ERROR | 50 | "ERROR" |
LOG_FATAL | 60 | "FATAL" |
The logging levels can be obtained also via the getInstance(String)
and the getInstances()
methods.
Method Summary | |
java.lang.String |
getDescription()
Returns the string description of the logging level. |
static LogLevel |
getInstance(java.lang.String description)
Returns a logging level by its description. |
static java.util.Collection |
getInstances()
Returns all logging levels currently available. |
int |
getLevel()
Returns the numerical logging level. |
java.lang.String |
toString()
Returns the string representation of the logging level. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public int getLevel()
public java.lang.String getDescription()
public java.lang.String toString()
Returns the same string as the getDescription()
method.
public static LogLevel getInstance(java.lang.String description)
If there is no instance with the given description, a null is returned. The description argument is case insensitive.
description
- the description of the level
public static java.util.Collection getInstances()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |