Methods Summary |
---|
public int | getDebug()Get the current debug level.
return debug;
|
public void | message(int level, java.lang.String message)Print debug message (if the debug level is high enough).
Prints "the message"
if (debug >= level) {
System.out.println(message);
}
|
public void | message(int level, java.lang.String message, java.lang.String spec)Print debug message (if the debug level is high enough).
Prints "the message: spec"
if (debug >= level) {
System.out.println(message + ": " + spec);
}
|
public void | message(int level, java.lang.String message, java.lang.String spec1, java.lang.String spec2)Print debug message (if the debug level is high enough).
Prints "the message: spec1" and "spec2" indented on the next line.
if (debug >= level) {
System.out.println(message + ": " + spec1);
System.out.println("\t" + spec2);
}
|
public void | setDebug(int newDebug)Set the debug level for future messages.
debug = newDebug;
|