Class SimpleFormatter

java.lang.Object
java.util.logging.Formatter
java.util.logging.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 Details

    • SimpleFormatter

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

    • 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.