com.hungry.javacvs.util
Class CVSDebug

java.lang.Object
  |
  +--com.hungry.javacvs.util.CVSDebug

public class CVSDebug
extends java.lang.Object

A generic interface to debugging spew.

To enable normal debugging info, define the property cvs.debug
To enable debugging info about the actual connection logic, define the property cvs.conn.debug


Constructor Summary
CVSDebug()
           
 
Method Summary
static void connDebug(java.lang.String spew)
          debug spew not related to the CVSConnection logic.
static void debug(java.lang.String spew)
          debug spew not relating to the CVSConnection logic.
static java.io.Writer getDebugWriter()
          get the current debug Writer.
static boolean isConnectionDebuggingOn()
          used to determine whether or not connection debugging as been turned on.
static boolean isDebuggingOn()
          used to determine whether or not debugging as been turned on.
static void setDebugWriter(java.io.Writer new_writer)
          allows the consumer to set the writer which the spew is routed to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CVSDebug

public CVSDebug()
Method Detail

debug

public static void debug(java.lang.String spew)
debug spew not relating to the CVSConnection logic.
Parameters:
spew - the string to be spewed.

connDebug

public static void connDebug(java.lang.String spew)
debug spew not related to the CVSConnection logic.
Parameters:
spew - the string to be spewed.

isDebuggingOn

public static boolean isDebuggingOn()
used to determine whether or not debugging as been turned on.
Returns:
whether or not debuggins as been turned on.

isConnectionDebuggingOn

public static boolean isConnectionDebuggingOn()
used to determine whether or not connection debugging as been turned on.
Returns:
whether or not debuggins as been turned on.

setDebugWriter

public static void setDebugWriter(java.io.Writer new_writer)
allows the consumer to set the writer which the spew is routed to. defaults to new PrintWriter(System.out);
Parameters:
new_writer - the writer to output debug messages to.

getDebugWriter

public static java.io.Writer getDebugWriter()
get the current debug Writer. defaults to new PrintWriter(System.out)