Package org.yamcs.logging
Class JournalFormatter
- java.lang.Object
-
- java.util.logging.Formatter
-
- org.yamcs.logging.JournalFormatter
-
public class JournalFormatter extends Formatter
A minimalistic formatter that is intended for use with systems that use the systemd journal. Useful for quick error detection. Characteristics:- Does not print timestamps (responsibility of journald)
- Does not print full stack traces
- Does not print Yamcs instance or logger names
- Converts level messages to syslog conventions which journald also applies
ConsoleHandler
that uses this formatter and then somehow send the console output to journald (for example by using a systemd service unit).
-
-
Constructor Summary
Constructors Constructor Description JournalFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
format(LogRecord r)
-
Methods inherited from class java.util.logging.Formatter
formatMessage, getHead, getTail
-
-