com.ice.cvsc
Class CVSTracer

java.lang.Object
  |
  +--com.ice.cvsc.CVSTracer

public class CVSTracer
extends java.lang.Object

The CVSTracer class implements the a tracing mechanism for the CVS package. This allows for more control and details than a simple 'CVSLog.logMsg()' provides. This is a strictly class based interface. There are no instance methods.

Version:
$Revision: 2.4 $
Author:
Timothy Gerard Endres, time@ice.com.
See Also:
CVSClient

Field Summary
static java.lang.String RCS_ID
           
static java.lang.String RCS_REV
           
 
Constructor Summary
CVSTracer()
           
 
Method Summary
static void accumulateInBuffer(java.lang.StringBuffer buffer)
           
static java.lang.StringBuffer getAccumulationBuffer()
           
static void println(java.lang.String line)
           
static void setEchoAccumulation(boolean state)
           
static void setWriter(java.io.PrintWriter newOut)
          Sets the tracer's output writer to the BufferedWriter passed in.
static void setWriterToStderr()
           
static void setWriterToStdout()
           
static void trace(java.lang.String line)
           
static void traceException(java.lang.String line, java.lang.Exception ex)
           
static void traceIf(boolean flag, java.lang.String line)
           
static void traceWithStack(java.lang.String line)
           
static void turnOff()
           
static void turnOffAccumulation()
           
static void turnOn()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RCS_ID

public static final java.lang.String RCS_ID
See Also:
Constant Field Values

RCS_REV

public static final java.lang.String RCS_REV
See Also:
Constant Field Values
Constructor Detail

CVSTracer

public CVSTracer()
Method Detail

turnOn

public static void turnOn()

turnOff

public static void turnOff()

setEchoAccumulation

public static void setEchoAccumulation(boolean state)

accumulateInBuffer

public static void accumulateInBuffer(java.lang.StringBuffer buffer)

turnOffAccumulation

public static void turnOffAccumulation()

getAccumulationBuffer

public static java.lang.StringBuffer getAccumulationBuffer()

println

public static void println(java.lang.String line)

trace

public static void trace(java.lang.String line)

traceIf

public static void traceIf(boolean flag,
                           java.lang.String line)

traceException

public static void traceException(java.lang.String line,
                                  java.lang.Exception ex)

traceWithStack

public static void traceWithStack(java.lang.String line)

setWriter

public static void setWriter(java.io.PrintWriter newOut)
Sets the tracer's output writer to the BufferedWriter passed in. The new writer newOut must never be System.err or System.err, since the writer will be closed at some point.

Parameters:
newOut - The new buffered writer to send trace output to.

setWriterToStdout

public static void setWriterToStdout()

setWriterToStderr

public static void setWriterToStderr()


Copyright © 1997-2003, Timothy G. Endres, All Rights Reserved.