public class TextFormatter extends Formatter
.format.
The default format is "%5$tT %3$-5s %2$-20s :: %6$s\n".
Examples:
The log message formatting call is:
String.format(format,
loggerName, // 1
loggerNameShort, // 2
levelOutputName, // 3
Thread.currentThread().getName(), // 4
new Date(record.getMillis()), // 5
formatted$) ; // 6
where formatted$ is the LogRecord message string after parameters have been processed.| Constructor and Description |
|---|
TextFormatter() |
TextFormatter(String fmt)
programmatic setup - provide the format
|
| Modifier and Type | Method and Description |
|---|---|
String |
format(LogRecord record) |
formatMessage, getHead, getTailLicenced under the Apache License, Version 2.0