Class SimpleFormatter


  • public class SimpleFormatter
    extends Formatter
    SimpleFormatter can be used to print a summary of the information contained in a LogRecord object in a human readable format.
    • Constructor Detail

      • SimpleFormatter

        public SimpleFormatter()
        Constructs a new SimpleFormatter.
    • Method Detail

      • format

        public String format​(LogRecord r)
        Converts a LogRecord object into a human readable string representation.
        Specified by:
        format in class Formatter
        Parameters:
        r - the log record to be formatted into a string.
        Returns:
        the formatted string.