Class LoggerFactory.ConsoleFormatter

  • Enclosing class:
    LoggerFactory

    public static class LoggerFactory.ConsoleFormatter
    extends java.util.logging.Formatter
    • 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 log record and return the formatted string.
      • 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

      • ConsoleFormatter

        public ConsoleFormatter()
    • Method Detail

      • format

        public java.lang.String format​(java.util.logging.LogRecord record)
        Format the given log record and return the formatted string.

        The resulting formatted String will normally include a localized and formatted version of the LogRecord's message field. It is recommended to use the Formatter.formatMessage(java.util.logging.LogRecord) convenience method to localize and format the message field.

        Specified by:
        format in class java.util.logging.Formatter
        Parameters:
        record - the log record to be formatted.
        Returns:
        the formatted log record