|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object soc.debug.D
public class D
Debug output; can be switched on and off. All output goes to System.out.
soc.debug.D and D
have the same interface, to easily switch
debug on and off per class.
Field Summary | |
---|---|
static boolean |
ebugOn
|
private static boolean |
enabled
|
Constructor Summary | |
---|---|
D()
|
Method Summary | |
---|---|
void |
debug(java.lang.String text)
Debug-println this text; for compatibility with log4j. |
static void |
ebug_disable()
DOCUMENT ME! |
static void |
ebug_enable()
DOCUMENT ME! |
static boolean |
ebugIsEnabled()
Is debug currently enabled? |
static void |
ebugPrint(java.lang.String text)
DOCUMENT ME! |
static void |
ebugPrintln()
DOCUMENT ME! |
static void |
ebugPrintln(java.lang.String text)
DOCUMENT ME! |
static void |
ebugPrintStackTrace(java.lang.Throwable ex,
java.lang.String prefixMsg)
If debug is enabled, print the stack trace of this exception |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean ebugOn
private static boolean enabled
Constructor Detail |
---|
public D()
Method Detail |
---|
public static final void ebug_enable()
public static final void ebug_disable()
public static final boolean ebugIsEnabled()
public static final void ebugPrintln(java.lang.String text)
text
- DOCUMENT ME!public static final void ebugPrintln()
public static final void ebugPrint(java.lang.String text)
text
- DOCUMENT ME!public final void debug(java.lang.String text)
ebugPrintln(String)
.
text
- Text to debug-printpublic static final void ebugPrintStackTrace(java.lang.Throwable ex, java.lang.String prefixMsg)
ex
- Exception or other Throwable. If null, will create an exception
in order to force a stack trace.prefixMsg
- Message for ebugPrintln(String)
above the exception,
or null; will print as:
prefixMsg + " - " + ex.toString
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |