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
Note that this class is just a formatter. It does not actually integrate with the systemd journal. If you want to do so you could configure a ConsoleHandler that uses this formatter and then somehow send the console output to journald (for example by using a systemd service unit).
  • Constructor Details

    • JournalFormatter

      public JournalFormatter()
  • Method Details