@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class MinimalLogFormatter extends java.util.logging.Formatter implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_TIMESTAMP_FORMAT
The default format string that will be used for generating timestamps.
|
| Constructor and Description |
|---|
MinimalLogFormatter()
Creates a new instance of this log formatter with the default settings.
|
MinimalLogFormatter(java.lang.String timestampFormat,
boolean includeLevel,
boolean lineBreakAfterHeader,
boolean lineBreakAfterMessage)
Creates a new instance of this log formatter with the provided
configuration.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
format(java.util.logging.LogRecord record)
Formats the provided log record.
|
@NotNull public static final java.lang.String DEFAULT_TIMESTAMP_FORMAT
public MinimalLogFormatter()
'['dd/MMM/yyyy:HH:mm:ss Z']'", will not include the log
level, and will not include a line break after the timestamp or the
message.public MinimalLogFormatter(@Nullable java.lang.String timestampFormat, boolean includeLevel, boolean lineBreakAfterHeader, boolean lineBreakAfterMessage)
timestampFormat - The format string used to generate
timestamps. If this is null, then
timestamps will not be included in log
messages.includeLevel - Indicates whether to include the log level
in the generated messages.lineBreakAfterHeader - Indicates whether to insert a line break
after the timestamp and/or log level.lineBreakAfterMessage - Indicates whether to insert aline break
after the generated message.