Class TextFormatter


  • final class TextFormatter
    extends java.util.logging.Formatter
    Formats a log record's data into human-readable text.
    • Constructor Summary

      Constructors 
      Constructor Description
      TextFormatter()
      The constructor to use.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String format​(java.util.logging.LogRecord record)
      Formats the given log record's data into human-readable text.
      • 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

      • TextFormatter

        public TextFormatter()
        The constructor to use.
    • Method Detail

      • format

        public java.lang.String format​(java.util.logging.LogRecord record)
        Formats the given log record's data into human-readable text.
        Specified by:
        format in class java.util.logging.Formatter
        Parameters:
        record - The log record whose data needs to be formatted.
        Returns:
        The log record's data as a string.