Class SysloglikeFormatter


  • public class SysloglikeFormatter
    extends java.util.logging.Formatter
    Formats a LogRecord in a human-readable, syslog-like format, and is intended for use with non-syslog handlers, such as FileHandler. Multi-line messages are automatically indented by four spaces to make subsequent lines easier to differentiate from new records.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String format​(java.util.logging.LogRecord record)
      Format the given LogRecord.
      • Methods inherited from class java.util.logging.Formatter

        formatMessage, getHead, getTail
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SysloglikeFormatter

        public SysloglikeFormatter()
    • Method Detail

      • format

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