|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.enterprisedt.util.debug.Level
public class Level
Simple debug level class. Uses the same interface (but not implementation) as log4j, so that the debug classes could be easily replaced by log4j (by changing imports - too dangerous to rely on class path and using the same package names)
Field Summary | |
---|---|
static Level |
ALL
All level |
static java.lang.String |
cvsId
Revision control id |
static Level |
DEBUG
Debug level |
static Level |
ERROR
OFF level |
static Level |
FATAL
Fatal level |
static Level |
INFO
Info level |
static Level |
OFF
Off level |
static Level |
WARN
Warn level |
Method Summary | |
---|---|
int |
getLevel()
Get integer log level |
static Level |
getLevel(java.lang.String level)
Get level from supplied string |
java.lang.String |
toString()
String representation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String cvsId
public static final Level OFF
public static final Level FATAL
public static final Level ERROR
public static final Level WARN
public static final Level INFO
public static final Level DEBUG
public static final Level ALL
Method Detail |
---|
public int getLevel()
public static Level getLevel(java.lang.String level)
level
- level as a string
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |