public class MessageFormatter
extends java.util.logging.Formatter
Constructor and Description |
---|
MessageFormatter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
format(java.util.logging.LogRecord record) |
java.lang.String |
formatMessage(java.util.logging.LogRecord record)
The "formatted" log message, after localization, substitution of
parameters, and the inclusion of an exception stack trace if applicable.
|
public java.lang.String format(java.util.logging.LogRecord record)
format
in class java.util.logging.Formatter
public java.lang.String formatMessage(java.util.logging.LogRecord record)
During formatting, if the source logger has a localization ResourceBundle and if that ResourceBundle has an entry for this message string, then the message string is replaced with the localized value.
If the message has parameters, java.text.MessageFormat is used to format the message with the parameters.
If the log record has an associated exception, the stack trace is appended to the log message.
formatMessage
in class java.util.logging.Formatter
MessageFormat
,
java.lang.Throwable.printStackTrace()