MultistepFormatter, StructuredFormatterpublic abstract class ExtFormatter extends Formatter
ExtLogRecord instances.| Constructor | Description |
|---|---|
ExtFormatter() |
| Modifier and Type | Method | Description |
|---|---|---|
String |
format(LogRecord record) |
|
abstract String |
format(ExtLogRecord record) |
Format a message using an extended log record.
|
String |
formatMessage(LogRecord record) |
|
protected String |
formatMessageLegacy(LogRecord record) |
Format the message text as if there are no parameters.
|
protected String |
formatMessageNone(LogRecord record) |
Format the message text as if there are no parameters.
|
protected String |
formatMessagePrintf(LogRecord record) |
Format the message text as if there are no parameters.
|
boolean |
isCallerCalculationRequired() |
Determines whether or not this formatter will require caller, source level, information when a log record is
formatted.
|
public abstract String format(ExtLogRecord record)
record - the log recordpublic String formatMessage(LogRecord record)
formatMessage in class Formatterpublic boolean isCallerCalculationRequired()
true if the formatter will need caller information, otherwise falseLogRecord.getSourceClassName(),
ExtLogRecord.getSourceFileName(),
ExtLogRecord.getSourceLineNumber(),
LogRecord.getSourceMethodName()protected String formatMessageNone(LogRecord record)
record.getMessage().record - the record to formatprotected String formatMessageLegacy(LogRecord record)
MessageFormat.format(record.getMessage(),record.getParameters()).record - the record to formatprotected String formatMessagePrintf(LogRecord record)
String.format(record.getMessage(),record.getParameters()).record - the record to formatCopyright © 2020 JBoss by Red Hat. All rights reserved.