public class SimpleFormatter extends Formatter
Provides a formatter that can be used with java.util.logging to produce single-line log-entries that
are reasonably compact and are prefixed with a sort-proof time-stamp.
If the verbosity level of the special logger named stack-trace is at least DEBUG, then stack traces
are reformatted to make it easier to dismiss the technicalities of AOP related stack frames. If the
verbosity level of the special logger named stack-trace is at least TRACE, these stack-frames are
indented, otherwise every block of one or more of these stack frames is replaced by "[...]".
| Constructor and Description |
|---|
SimpleFormatter()
Creates a new
SimpleFormatter instance. |
| Modifier and Type | Method and Description |
|---|---|
String |
format(LogRecord logRecord)
Formats a
logRecord. |
void |
setRegexFormat(boolean flag)
Sets property
regexFormat. |
formatMessage, getHead, getTailpublic void setRegexFormat(boolean flag)
regexFormat. When this property is set to true, the
organization and sourceClass fields in the log record are filled by a very simple
regular expression match on the sourceClassName property of the logRecord.flag - The value to use for regexFormatCopyright © 2013. All Rights Reserved.