com.cisco.services.tracing
Class ConsoleTraceWriter

java.lang.Object
  extended by com.cisco.services.tracing.BaseTraceWriter
      extended by com.cisco.services.tracing.ConsoleTraceWriter
All Implemented Interfaces:
TraceWriter

public final class ConsoleTraceWriter
extends BaseTraceWriter

Supplies a console TraceWriter to trace to System.out.

See Also:
Trace

Constructor Summary
ConsoleTraceWriter()
          Default constructor, traces all severity levels
ConsoleTraceWriter(int maxTraceLevel)
          Constructor that sets the maximum level to be traced.
ConsoleTraceWriter(int[] traceLevels)
          Construct a ConsoleTraceWriter with an array of trace levels Only traces with the severity in the tracelevel array are traced
 
Method Summary
protected  void doFlush()
           
protected  void doPrintln(java.lang.String message, int messageNumber)
          Must be implemented by the various TraceWriters extending BaseTraceWriter to provide the specific tracing functionality
static void main(java.lang.String[] args)
           
 
Methods inherited from class com.cisco.services.tracing.BaseTraceWriter
close, doClose, flush, getDescription, getEnabled, getName, getTraceLevels, println, setTraceLevels, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConsoleTraceWriter

public ConsoleTraceWriter()
Default constructor, traces all severity levels


ConsoleTraceWriter

public ConsoleTraceWriter(int maxTraceLevel)
Constructor that sets the maximum level to be traced.

Parameters:
maxTraceLevel - Maximum level to be traced
See Also:
Trace

ConsoleTraceWriter

public ConsoleTraceWriter(int[] traceLevels)
Construct a ConsoleTraceWriter with an array of trace levels Only traces with the severity in the tracelevel array are traced

Parameters:
traceLevels - Array of trace levels
See Also:
Trace
Method Detail

doPrintln

protected final void doPrintln(java.lang.String message,
                               int messageNumber)
Description copied from class: BaseTraceWriter
Must be implemented by the various TraceWriters extending BaseTraceWriter to provide the specific tracing functionality

Specified by:
doPrintln in class BaseTraceWriter

doFlush

protected final void doFlush()
Overrides:
doFlush in class BaseTraceWriter

main

public static void main(java.lang.String[] args)