Class 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.3 $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String lastPrefix_  
      private static java.text.Format TIMESTAMP_FORMAT  
    • Constructor Summary

      Constructors 
      Constructor Description
      BashTraceWriter()
      Create a new writer.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.