| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private final MessageFormat | exmformat
MessageFormat for messages with a throwable |
| private final MessageFormat | mformat
MessageFormat for standard messages (without Throwable) |
| private static final String | |
| private final boolean[] | |
| private final boolean[] |
| Access | Constructor and Description |
|---|---|
| public | |
| public | XRSimpleLogFormatter(String msgFmt, String throwableMsgFmt)
Create a custom log formatter for use with:
|
| Modifier and Type | Method and Description |
|---|---|
| public String | format(LogRecord
the log record to be formatted. record)Implements abstract java. Format the given log record and return the formatted string. |
| public String | formatMessage(LogRecord
the log record containing the raw message record)Overrides java. 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. |
| private static boolean[] |
| EX_MSG_FMT | back to summary |
|---|---|
| private static final String EX_MSG_FMT | |
| exmformat | back to summary |
|---|---|
| private final MessageFormat exmformat MessageFormat for messages with a throwable | |
| mformat | back to summary |
|---|---|
| private final MessageFormat mformat MessageFormat for standard messages (without Throwable) | |
| MSG_FMT | back to summary |
|---|---|
| private static final String MSG_FMT | |
| usedPlaceholderForExmsgFmt | back to summary |
|---|---|
| private final boolean[] usedPlaceholderForExmsgFmt | |
| usedPlaceholderForMsgFmt | back to summary |
|---|---|
| private final boolean[] usedPlaceholderForMsgFmt | |
| XRSimpleLogFormatter | back to summary |
|---|---|
| public XRSimpleLogFormatter() | |
| XRSimpleLogFormatter | back to summary |
|---|---|
| public XRSimpleLogFormatter(String msgFmt, String throwableMsgFmt) Create a custom log formatter for use with:
{1} {2}:: {5}\nExample (throwableMsgFmt): {1} {2}:: {5} => {6}:: {7}\n
| |
| format | back to summary |
|---|---|
| public String format(LogRecord record) Implements abstract java. Format the given log record and return the formatted string.
| |
| formatMessage | back to summary |
|---|---|
| public String formatMessage(LogRecord record) Overrides java. Localize and format the message string from a log record.
| |
| getHead | back to summary |
|---|---|
| public String getHead(Handler h) Overrides java. Return the header string for a set of formatted records.
| |
| getTail | back to summary |
|---|---|
| public String getTail(Handler h) Overrides java. Return the tail string for a set of formatted records.
| |
| usedPlaceholder | back to summary |
|---|---|
| private static boolean[] usedPlaceholder(MessageFormat messageFormat) Identify which arguments are effectively used. | |