ExtLogRecord instances.
| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | ExtFormatter.
A base class for formatters which wrap other formatters. |
| pack-priv static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final String | format(final LogRecord
the log record to be formatted. record)Implements abstract java. Format the given log record and return the formatted string. |
| public abstract String | Returns: the formatted messagethe log record record)Format a message using an extended log record. |
| public String | formatMessage(LogRecord
the log record containing the raw message record)Overrides java. Localize and format the message string from a log record. |
| protected String | Returns: the formatted stringthe record to format record)Format the message text as if there are no parameters. |
| protected String | Returns: the formatted stringthe record to format record)Format the message text as if there are no parameters. |
| protected String | Returns: the formatted stringthe record to format record)Format the message text as if there are no parameters. |
| public boolean | Returns: true if the formatter will need caller information, otherwise falseDetermines whether or not this formatter will require caller, source level, information when a log record is formatted. |
| public static ExtFormatter | Returns: the extended formatter (notnull)the formatter to wrap (must not be formatter, boolean null)true to replace message formatting, false to let the original formatter do itWrap an existing formatter with an |
| ExtFormatter | back to summary |
|---|---|
| public ExtFormatter() Construct a new instance. | |
| format | back to summary |
|---|---|
| public final String format(final LogRecord record) Implements abstract java. Doc from java. 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 | |
| format | back to summary |
|---|---|
| public abstract String format(ExtLogRecord record) Format a message using an extended log record.
| |
| formatMessage | back to summary |
|---|---|
| public String formatMessage(LogRecord record) Overrides java. Doc from java. Localize and format the message string from a log record. This method is provided as a convenience for Formatter subclasses to use when they are performing formatting. The message string is first localized to a format string using the record's ResourceBundle. (If there is no ResourceBundle, or if the message key is not found, then the key is used as the format string.) The format String uses java.text style formatting.
| |
| formatMessageLegacy | back to summary |
|---|---|
| protected String formatMessageLegacy(LogRecord record) Format the message text as if there are no parameters. The default implementation delegates to
| |
| formatMessageNone | back to summary |
|---|---|
| protected String formatMessageNone(LogRecord record) Format the message text as if there are no parameters. The default implementation delegates to
| |
| formatMessagePrintf | back to summary |
|---|---|
| protected String formatMessagePrintf(LogRecord record) Format the message text as if there are no parameters. The default implementation delegates to
| |
| isCallerCalculationRequired | back to summary |
|---|---|
| public boolean isCallerCalculationRequired() Determines whether or not this formatter will require caller, source level, information when a log record is formatted.
| |
| wrap | back to summary |
|---|---|
| public static ExtFormatter wrap(Formatter formatter, boolean formatMessages) Wrap an existing formatter with an
| |
| Modifier and Type | Field and Description |
|---|---|
| protected final ExtFormatter | delegate
The delegate formatter. |
| Access | Constructor and Description |
|---|---|
| public | Delegating(final ExtFormatter
the delegate formatter (must not be delegate)null)Construct a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| public String | format(final ExtLogRecord
the log record record)Implements abstract org. Format a message using an extended log record. |
| public String | formatMessage(final LogRecord
the log record containing the raw message record)Overrides org. Localize and format the message string from a log record. |
| public String | getHead(final Handler
The target handler (can be null) h)Overrides java. Return the header string for a set of formatted records. |
| public String | getTail(final Handler
The target handler (can be null) h)Overrides java. Return the tail string for a set of formatted records. |
| public boolean | isCallerCalculationRequired()
Overrides org. Determines whether or not this formatter will require caller, source level, information when a log record is formatted. |
| delegate | back to summary |
|---|---|
| protected final ExtFormatter delegate The delegate formatter. | |
| Delegating | back to summary |
|---|---|
| public Delegating(final ExtFormatter delegate) Construct a new instance.
| |
| format | back to summary |
|---|---|
| public String format(final ExtLogRecord record) Implements abstract org. Doc from org. Format a message using an extended log record.
| |
| formatMessage | back to summary |
|---|---|
| public String formatMessage(final LogRecord record) Overrides org. Doc from java. Localize and format the message string from a log record. This method is provided as a convenience for Formatter subclasses to use when they are performing formatting. The message string is first localized to a format string using the record's ResourceBundle. (If there is no ResourceBundle, or if the message key is not found, then the key is used as the format string.) The format String uses java.text style formatting.
| |
| getHead | back to summary |
|---|---|
| public String getHead(final Handler h) Overrides java. Doc from java. Return the header string for a set of formatted records. This base class returns an empty string, but this may be overridden by subclasses. | |
| getTail | back to summary |
|---|---|
| public String getTail(final Handler h) Overrides java. Doc from java. Return the tail string for a set of formatted records. This base class returns an empty string, but this may be overridden by subclasses. | |
| isCallerCalculationRequired | back to summary |
|---|---|
| public boolean isCallerCalculationRequired() Overrides org. Doc from org. Determines whether or not this formatter will require caller, source level, information when a log record is formatted.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final Formatter |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String | format(ExtLogRecord
the log record record)Implements abstract org. Format a message using an extended log record. |
| public String | formatMessage(LogRecord
the log record containing the raw message record)Overrides org. Localize and format the message string from a log record. |
| public String | getHead(Handler
The target handler (can be null) h)Overrides java. Return the header string for a set of formatted records. |
| public String | getTail(Handler
The target handler (can be null) h)Overrides java. Return the tail string for a set of formatted records. |
| formatMessages | back to summary |
|---|---|
| private final boolean formatMessages | |
| formatter | back to summary |
|---|---|
| private final Formatter formatter | |
| WrappedFormatter | back to summary |
|---|---|
| pack-priv WrappedFormatter(Formatter formatter, boolean formatMessages) | |
| format | back to summary |
|---|---|
| public String format(ExtLogRecord record) Implements abstract org. Doc from org. Format a message using an extended log record.
| |
| formatMessage | back to summary |
|---|---|
| public String formatMessage(LogRecord record) Overrides org. Doc from java. Localize and format the message string from a log record. This method is provided as a convenience for Formatter subclasses to use when they are performing formatting. The message string is first localized to a format string using the record's ResourceBundle. (If there is no ResourceBundle, or if the message key is not found, then the key is used as the format string.) The format String uses java.text style formatting.
| |
| getHead | back to summary |
|---|---|
| public String getHead(Handler h) Overrides java. Doc from java. Return the header string for a set of formatted records. This base class returns an empty string, but this may be overridden by subclasses. | |
| getTail | back to summary |
|---|---|
| public String getTail(Handler h) Overrides java. Doc from java. Return the tail string for a set of formatted records. This base class returns an empty string, but this may be overridden by subclasses. | |