Class TerseLogFormatter

  • Direct Known Subclasses:
    TimestampingLogFormatter

    public class TerseLogFormatter
    extends Formatter
    Produces "Terse" Log Messages which fit on one line and include just the level, method, class name, and raw message.
    Author:
    hogye
    • Constructor Detail

      • TerseLogFormatter

        public TerseLogFormatter()
    • 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 Formatter
        See Also:
        Formatter.format(java.util.logging.LogRecord)