java.util.logging
Class SimpleFormatter
java.lang.Object
java.util.logging.Formatter
java.util.logging.SimpleFormatter
public class SimpleFormatter
- extends Formatter
A SimpleFormatter
formats log records into
short human-readable messages, typically one or two lines.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleFormatter
public SimpleFormatter()
- Constructs a SimpleFormatter.
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
.