java.util.logging

Class SimpleFormatter

public class SimpleFormatter extends Formatter

A SimpleFormatter formats log records into short human-readable messages, typically one or two lines.
Constructor Summary
SimpleFormatter()
Constructs a SimpleFormatter.
Method Summary
Stringformat(LogRecord record)
Formats a log record into a String.

Constructor Detail

SimpleFormatter

public SimpleFormatter()
Constructs a SimpleFormatter.

Method Detail

format

public String format(LogRecord record)
Formats a log record into a String.

Parameters: record the log record to be formatted.

Returns: a short human-readable message, typically one or two lines. Lines are separated using the default platform line separator.

Throws: NullPointerException if record is null.