com.gargoylesoftware.base.trace

Class BashTraceWriter

public class BashTraceWriter extends 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.3 $

Author: Mike Bowler

Field Summary
static StringlastPrefix_
static FormatTIMESTAMP_FORMAT
Constructor Summary
BashTraceWriter()
Create a new writer.
Method Summary
voidwrite(TraceItem item)
Write the specified item.

Field Detail

lastPrefix_

private static String lastPrefix_

TIMESTAMP_FORMAT

private static final Format TIMESTAMP_FORMAT

Constructor Detail

BashTraceWriter

public BashTraceWriter()
Create a new writer.

Method Detail

write

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

Parameters: item The TraceItem to be written.