com.gargoylesoftware.base.trace
Class BashTraceWriter

java.lang.Object
  extended by com.gargoylesoftware.base.trace.BashTraceWriter
All Implemented Interfaces:
TraceWriter

public class BashTraceWriter
extends java.lang.Object
implements TraceWriter

A trace writer specifically designed for the bash shell. The reason it requires "bash" is that is colour codes the tracing using bash specific escape codes.

Version:
$Revision: 1.5 $
Author:
Mike Bowler

Field Summary
private static java.lang.String lastPrefix_
           
private static java.text.Format TIMESTAMP_FORMAT
           
 
Constructor Summary
BashTraceWriter()
          Create a new writer.
 
Method Summary
 void write(TraceItem item)
          Write the specified item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lastPrefix_

private static java.lang.String lastPrefix_

TIMESTAMP_FORMAT

private static final java.text.Format TIMESTAMP_FORMAT
Constructor Detail

BashTraceWriter

public BashTraceWriter()
Create a new writer.

Method Detail

write

public void write(TraceItem item)
Write the specified item.

Specified by:
write in interface TraceWriter
Parameters:
item - The TraceItem to be written.