Top Description Fields Constructors Methods
org.hsqldb.lib

public Class BasicTextJdkLogFormatter

extends Formatter
Class Inheritance
Imports
java.io.PrintWriter, .StringWriter, java.text.SimpleDateFormat, java.util.Date, java.util.logging.Formatter, .LogRecord

An implementation of java.util.logging.Formatter very close to SimpleFormatter. The features here are optional timestamping, sortable numeric time stamp text, and no indication of invoking source code location (logger ID, class name, method name, etc.).
Author
Blaine Simpson (blaine dot simpson at admc dot com)
See Also
Formatter, java.util.logging.SimpleFormatter

Field Summary

Modifier and TypeField and Description
public static final String
protected SimpleDateFormat
protected boolean

Constructor Summary

AccessConstructor and Description
public
BasicTextJdkLogFormatter(boolean withTime)

public

Method Summary

Modifier and TypeMethod and Description
public String
format(LogRecord record)

Implements abstract java.util.logging.Formatter.format.

Format the given log record and return the formatted string.

Inherited from java.util.logging.Formatter:
formatMessagegetHeadgetTail

Field Detail

LSback to summary
public static final String LS
sdfback to summary
protected SimpleDateFormat sdf
withTimeback to summary
protected boolean withTime

Constructor Detail

BasicTextJdkLogFormatterback to summary
public BasicTextJdkLogFormatter(boolean withTime)
BasicTextJdkLogFormatterback to summary
public BasicTextJdkLogFormatter()

Method Detail

formatback to summary
public String format(LogRecord record)

Implements abstract java.util.logging.Formatter.format.

Doc from java.util.logging.Formatter.format.

Format the given log record and return the formatted string.

The resulting formatted String will normally include a localized and formatted version of the LogRecord's message field. It is recommended to use the Formatter#formatMessage convenience method to localize and format the message field.