|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--f00f.net.irc.martyr.Debug
Aids in debugging and logging for martyr.
| Field Summary | |
static int |
BAD
Some kind of badness is going on here, but it is within acceptable limits and handled nicely. |
static int |
CRITICAL
Something went wrong, maybe not our fault. |
static int |
EXCESSIVE
Excessive information about internals that no human should need to know or care about. |
static int |
FAULT
Signals in internal fault, similar to failling an assertion but the program doesn't halt. |
static int |
NORMAL
Information about normal procedures. |
static int |
VERBOSE
Information about some details of normal procedures. |
| Constructor Summary | |
Debug()
|
|
| Method Summary | |
static java.io.PrintStream |
getOutputStream()
|
static void |
println(java.lang.Object sender,
java.lang.String message,
int msgLevel)
|
static void |
println(java.lang.String sender,
java.lang.String message,
int msgLevel)
Writes out the message if msgLevel is less than or equal to the internal level. |
static void |
setDebugLevel(int level)
Sets the debug level so that all messages equal to or less than 'level' will be output. |
static void |
setOutputStream(java.io.PrintStream out)
Sets the output stream to where the debug messages will go. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int FAULT
public static final int CRITICAL
public static final int BAD
public static final int NORMAL
public static final int VERBOSE
public static final int EXCESSIVE
| Constructor Detail |
public Debug()
| Method Detail |
public static void setOutputStream(java.io.PrintStream out)
public static java.io.PrintStream getOutputStream()
public static void setDebugLevel(int level)
public static void println(java.lang.String sender,
java.lang.String message,
int msgLevel)
public static void println(java.lang.Object sender,
java.lang.String message,
int msgLevel)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||