public class DebugReporter
extends java.lang.Object
| Constructor and Description |
|---|
DebugReporter(int initDebugLevel)
Creates a debug reporter that will report to standard I/O.
|
DebugReporter(java.io.PrintWriter dbgWt)
Creates a debug reporter that will send its output to the given
PrintWriter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
debug(int level,
java.lang.String s)
Reports this debug information.
|
void |
debug(int level,
java.lang.String s,
boolean newline)
Reports this debug information.
|
void |
debug(int level,
java.lang.String s,
boolean newline,
boolean indent)
Reports this debug information.
|
int |
getCurLevel() |
int |
getDebugLevel() |
void |
setCurLevel(int curLevel)
Sets the debug level, where level=0 means no debug info, level = 5
verbose info.
|
void |
setDebugLevel(int level)
Sets the debug level, where level=0 means no debug info, level = 5
verbose info.
|
public DebugReporter(int initDebugLevel)
initDebugLevel - Initial debug levelpublic DebugReporter(java.io.PrintWriter dbgWt)
dbgWt - the PrintWriter where the debug information will be sent.public final void setCurLevel(int curLevel)
curLevel - The curLevel to set to.public final int getCurLevel()
public void debug(int level,
java.lang.String s)
level - Use level=0 for very important things, level=5 less important.s - The String to reportdebug(int, String, boolean, boolean)public void debug(int level,
java.lang.String s,
boolean newline)
level - Use level=0 for very important things, level=5 less important.s - The String to reportnewline - whether newline is added at the end.debug(int, String, boolean, boolean)public void debug(int level,
java.lang.String s,
boolean newline,
boolean indent)
level - Use level=0 for very important things, level=5 less important.s - The String to reportnewline - whether newline is added at the end.indent - whwether information should go indented according to debug
level.public int getDebugLevel()
public void setDebugLevel(int level)
level - debug level