Class BasicGetLogHeader

  • All Implemented Interfaces:
    PrintWriterGetHeader

    class BasicGetLogHeader
    extends java.lang.Object
    implements PrintWriterGetHeader
    Get a header to prepend to a line of output. * A HeaderPrintWriter requires an object which implements this interface to construct line headers.
    See Also:
    HeaderPrintWriter
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean doThreadId  
      private boolean doTimeStamp  
      private java.lang.String tag  
    • Constructor Summary

      Constructors 
      Constructor Description
      BasicGetLogHeader​(boolean doThreadId, boolean doTimeStamp, java.lang.String tag)
      Constructor for a BasicGetLogHeader object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getHeader()
      getHeader
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • doThreadId

        private boolean doThreadId
      • doTimeStamp

        private boolean doTimeStamp
      • tag

        private java.lang.String tag
    • Constructor Detail

      • BasicGetLogHeader

        BasicGetLogHeader​(boolean doThreadId,
                          boolean doTimeStamp,
                          java.lang.String tag)
        Constructor for a BasicGetLogHeader object.

        Parameters:
        doThreadId - true means include the calling thread's id in the header.
        doTimeStamp - true means include the current time in the header.
        tag - A string to prefix the header. null means don't prefix the header with a string.