|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jclass.dbg
Class defining different level general purpose debugging facilities.
Written: Radu Sion
Version: 0.23
Source: dbg.java
Visit
Smart Software
Field Summary | |
static int |
ALL
|
int |
debug_level
This defines the current debug level. |
static int |
DEBUG_LEVEL
This defines the current debug level. |
static int |
ERROR
|
static int |
FATAL
|
static int |
INFO
|
static int |
JUNK
|
static int |
MAX
|
static int |
MIN
|
static int |
NONE
|
static int |
TRUNCATESIZE
This is a cut-size in bytes for each line of debuging output. |
static int |
WARN
|
Constructor Summary | |
dbg()
This constructor defaults the output to System.err. |
|
dbg(java.io.PrintStream file)
This constructor allows choosing a alternate logfile ... |
void |
close()
Closes the underlying stream and defaults it to System.err. |
static void |
p(int lvl,
java.lang.Object ooo)
Prints out the message only if lvl<=debug_level and debug_level!=NONE. |
static void |
p(int lvl,
java.lang.Object ooo,
java.io.PrintStream p)
Prints out debugging information. |
void |
pp(int lvl,
java.lang.Object ooo)
This uses the static version in order to print out to the internally specified printstream. |
void |
setPrintStream(java.io.PrintStream file)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int NONE
public static final int JUNK
public static final int INFO
public static final int WARN
public static final int ERROR
public static final int FATAL
public static final int MIN
public static final int MAX
public static final int ALL
public static int TRUNCATESIZE
public static int DEBUG_LEVEL
public int debug_level
Constructor Detail |
public dbg(java.io.PrintStream file)
public dbg()
Method Detail |
public void setPrintStream(java.io.PrintStream file)
public void close() throws java.io.IOException
public void pp(int lvl, java.lang.Object ooo)
public static void p(int lvl, java.lang.Object ooo)
public static void p(int lvl, java.lang.Object ooo, java.io.PrintStream p)
ooo
- The object that represents the debugging messagep
- PrintStream to print to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |