public class

SimpleFormatter

extends Formatter
java.lang.Object
   ↳ java.util.logging.Formatter
     ↳ java.util.logging.SimpleFormatter

Class Overview

Print a brief summary of the LogRecord in a human readable format. The summary will typically be 1 or 2 lines.

Summary

Public Constructors
SimpleFormatter()
Public Methods
synchronized String format(LogRecord record)
Format the given LogRecord.
[Expand]
Inherited Methods
From class java.util.logging.Formatter
From class java.lang.Object

Public Constructors

public SimpleFormatter ()

Public Methods

public synchronized String format (LogRecord record)

Format the given LogRecord.

This method can be overridden in a subclass. It is recommended to use the formatMessage(LogRecord) convenience method to localize and format the message field.

Parameters
record the log record to be formatted.
Returns
  • a formatted log record