soc.debug
Class D

java.lang.Object
  extended by soc.debug.D

public class D
extends java.lang.Object

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

ebugOn

public static final boolean ebugOn
See Also:
Constant Field Values

enabled

private static boolean enabled
Constructor Detail

D

public D()
Method Detail

ebug_enable

public static final void ebug_enable()
DOCUMENT ME!


ebug_disable

public static final void ebug_disable()
DOCUMENT ME!


ebugIsEnabled

public static final boolean ebugIsEnabled()
Is debug currently enabled?


ebugPrintln

public static final void ebugPrintln(java.lang.String text)
DOCUMENT ME!

Parameters:
text - DOCUMENT ME!

ebugPrintln

public static final void ebugPrintln()
DOCUMENT ME!


ebugPrint

public static final void ebugPrint(java.lang.String text)
DOCUMENT ME!

Parameters:
text - DOCUMENT ME!

debug

public final void debug(java.lang.String text)
Debug-println this text; for compatibility with log4j. Calls ebugPrintln(String).

Parameters:
text - Text to debug-print

ebugPrintStackTrace

public static final void ebugPrintStackTrace(java.lang.Throwable ex,
                                             java.lang.String prefixMsg)
If debug is enabled, print the stack trace of this exception

Parameters:
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