Class TimestampingLogFormatter


  • public class TimestampingLogFormatter
    extends TerseLogFormatter
    Extends TerseLogFormatter to include a timestamp before each line.
    Author:
    hogye
    • Constructor Detail

      • TimestampingLogFormatter

        public TimestampingLogFormatter()
    • Method Detail

      • format

        public String format​(LogRecord record)
        Description copied from class: Formatter
        This method should be called via super.format(record) as the first line of any subclass format method. It infers the correct caller and method names and injects them into the LogRecord (filtering out the internal classes and methods of the Metron logging itself).
        Overrides:
        format in class TerseLogFormatter
        See Also:
        Formatter.format(java.util.logging.LogRecord)