public class JulPatternFormatter extends Formatter
The format string may contains one of the following elements:
%1: the date,%2: the name of the calling function,%3: the name of the logger,%4: the logging level,%5: the message, and%6: the throwable.| Constructor and Description |
|---|
JulPatternFormatter(pattern : String)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
filterLogName(logName : String)
Filter the log name in order to computer the one that is displayed into the log.
|
String |
format(record : LogRecord) |
formatMessage, getHead, getTailpublic new(pattern : String)
pattern - the pattern that is compatible with String.format(String, Object...).@Pure
protected def filterLogName(logName : String) : String
JulPatternFormatterlogName - the log name to filter.Copyright © 2021 the original authors or authors.