java.lang.Object
java.util.logging.Formatter
org.apache.jena.atlas.logging.java.TextFormatter
A pattern-driven log formatter.
Inspired by Log4j's PatternLayout
Set a different output pattern with
.format.
The default format is "%5$tT %3$-5s %2$-20s :: %6$s\n".
Examples:
- "%5$tT.%5$tL %3$-5s %2$-20s :: %6$s\n" for milliseconds.
- "%tF %5$tT.%5$tL %3$-5s %2$-20s :: %6$s\n" for date
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 Summary
Constructors -
Method Summary
Methods inherited from class java.util.logging.Formatter
formatMessage, getHead, getTail