Top Description Constructors Methods
org.apache.juli

public Class VerbatimFormatter

extends Formatter
Class Inheritance
Imports
java.util.logging.Formatter, .LogRecord

Outputs the just the log message with no additional elements. Stack traces are not logged. Log messages are separated by System.lineSeparator(). This is intended for use by access logs and the like that need complete control over the output format.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
format(LogRecord
the log record to be formatted.
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

Constructor Detail

VerbatimFormatterback to summary
public VerbatimFormatter()

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.

Parameters
record:LogRecord

the log record to be formatted.

Returns:String

the formatted log record

Annotations
@Override