Package org.jboss.logmanager
Class ExtFormatter
java.lang.Object
java.util.logging.Formatter
org.jboss.logmanager.ExtFormatter
- Direct Known Subclasses:
MultistepFormatter,StructuredFormatter
A formatter which handles
ExtLogRecord instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringabstract Stringformat(ExtLogRecord record) Format a message using an extended log record.formatMessage(LogRecord record) protected StringformatMessageLegacy(LogRecord record) Format the message text as if there are no parameters.protected StringformatMessageNone(LogRecord record) Format the message text as if there are no parameters.protected StringformatMessagePrintf(LogRecord record) Format the message text as if there are no parameters.booleanDetermines whether or not this formatter will require caller, source level, information when a log record is formatted.
-
Constructor Details
-
ExtFormatter
public ExtFormatter()
-
-
Method Details
-
format
-
format
Format a message using an extended log record.- Parameters:
record- the log record- Returns:
- the formatted message
-
formatMessage
- Overrides:
formatMessagein classFormatter
-
isCallerCalculationRequired
public boolean isCallerCalculationRequired()Determines whether or not this formatter will require caller, source level, information when a log record is formatted.- Returns:
trueif the formatter will need caller information, otherwisefalse- See Also:
-
formatMessageNone
Format the message text as if there are no parameters. The default implementation delegates torecord.getMessage().- Parameters:
record- the record to format- Returns:
- the formatted string
-
formatMessageLegacy
Format the message text as if there are no parameters. The default implementation delegates toMessageFormat.format(record.getMessage(),record.getParameters()).- Parameters:
record- the record to format- Returns:
- the formatted string
-
formatMessagePrintf
Format the message text as if there are no parameters. The default implementation delegates toString.format(record.getMessage(),record.getParameters()).- Parameters:
record- the record to format- Returns:
- the formatted string
-