|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsophware.home.util.DEBUG
public class DEBUG
DEBUG provides a mechanism for embedding debug messages with different debug levels. Level zero turns off debugging, the higher the level the more verbose the messaging.
| Field Summary | |
|---|---|
static int |
m_level
the current debug level |
static java.io.PrintStream |
m_outputStream
the output stream |
| Constructor Summary | |
|---|---|
DEBUG()
|
|
| Method Summary | |
|---|---|
static java.text.DateFormat |
getDateFormat()
Get the date format |
static boolean |
isAt(int level)
Checks whether debug level is at or above given value |
static void |
println(int level,
java.lang.String message)
Prints a debug message |
static void |
setDateFormat(java.text.DateFormat format)
Set the date format |
static void |
setLevel(java.lang.String[] argv)
Prints a debug message |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.io.PrintStream m_outputStream
public static int m_level
| Constructor Detail |
|---|
public DEBUG()
| Method Detail |
|---|
public static void setDateFormat(java.text.DateFormat format)
format - the new DateFormatSimpleDateFormatpublic static java.text.DateFormat getDateFormat()
SimpleDateFormatpublic static void setLevel(java.lang.String[] argv)
argv - program arguments
public static void println(int level,
java.lang.String message)
level - the debug level of the messagemessage - the messagepublic static boolean isAt(int level)
level - the debug level of the message
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||