java.util.logging
Class SimpleFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by java.util.logging.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
 String format(LogRecord record)
          Formats a log record into a String.
 
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

SimpleFormatter

public SimpleFormatter()
Constructs a SimpleFormatter.

Method Detail

format

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

Specified by:
format in class Formatter
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.