Class LogLine


  • public class LogLine
    extends java.lang.Object
    Represents a single log line of the DefaultFixtureLogger.
    Author:
    Rene Schneider - initial API and implementation
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected FixtureLogLevel level
      The level at which the line was logged.
      protected java.lang.String text
      The text.
      protected long timestamp
      The timestamp at which this line was logged.
      protected static java.text.DateFormat TIMESTAMP_FORMAT
      The timestamp format for stringification of this log line.
    • Constructor Summary

      Constructors 
      Constructor Description
      LogLine​(java.lang.String aText, FixtureLogLevel aLevel)
      Creates a new instance.
    • Field Detail

      • text

        protected java.lang.String text
        The text.
      • timestamp

        protected long timestamp
        The timestamp at which this line was logged.
      • level

        protected FixtureLogLevel level
        The level at which the line was logged.
      • TIMESTAMP_FORMAT

        protected static final java.text.DateFormat TIMESTAMP_FORMAT
        The timestamp format for stringification of this log line.
    • Constructor Detail

      • LogLine

        public LogLine​(java.lang.String aText,
                       FixtureLogLevel aLevel)
        Creates a new instance.
        Parameters:
        aText - the text
        aLevel - the level at which the line was logged
    • Method Detail

      • getText

        public java.lang.String getText()
      • getTimestamp

        public long getTimestamp()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object