Package org.yamcs.logging
Class ConsoleFormatter
- java.lang.Object
-
- java.util.logging.Formatter
-
- org.yamcs.logging.ConsoleFormatter
-
public class ConsoleFormatter extends Formatter
Specifically intended for short-term console output. It contains the bare minimum of information. Memory optimization is 'good enough' for console output. Features:- Hides the day, only the hour is shown
- Hides severities, except for 'WARNING' and 'ERROR'
- Hides the method name
- Supports minimal colors
-
-
Constructor Summary
Constructors Constructor Description ConsoleFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringformat(LogRecord r)voidsetEnableAnsiColors(boolean enableAnsiColors)-
Methods inherited from class java.util.logging.Formatter
formatMessage, getHead, getTail
-
-