Class ConsoleLogFormatter


  • public class ConsoleLogFormatter
    extends Formatter
    An implementation of java.util.logging.Formatter. Produces single line log reports meant to go to the console.
    Author:
    Matej Sekoranja (matej.sekoranjaATcosylab.com)
    • Field Detail

      • KEY_TRACE

        public static String KEY_TRACE
        System property key to enable trace messages.
    • Constructor Detail

      • ConsoleLogFormatter

        public ConsoleLogFormatter()
    • Method Detail

      • format

        public String format​(LogRecord record)
        Format the given LogRecord.
        Specified by:
        format in class Formatter
        Parameters:
        record - the log record to be formatted.
        Returns:
        a formatted log record