cz.cuni.amis.utils.logging
Class DefaultLogFormatter
java.lang.Object
java.util.logging.Formatter
cz.cuni.amis.utils.logging.DefaultLogFormatter
- Direct Known Subclasses:
- LogFormatter
public class DefaultLogFormatter
- extends java.util.logging.Formatter
Pogamut custom formatter used as default.
Field Summary |
protected java.lang.String |
lineEnd
|
protected boolean |
lineEnds
Whether to append lineEnd after the log message. |
protected java.lang.String |
name
|
static java.lang.String[] |
whitespaces
|
Method Summary |
java.lang.String |
format(java.util.logging.LogRecord record)
|
Methods inherited from class java.util.logging.Formatter |
formatMessage, getHead, getTail |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lineEnds
protected boolean lineEnds
- Whether to append
lineEnd
after the log message.
lineEnd
protected java.lang.String lineEnd
name
protected java.lang.String name
whitespaces
public static final java.lang.String[] whitespaces
DefaultLogFormatter
public DefaultLogFormatter()
DefaultLogFormatter
public DefaultLogFormatter(java.lang.String unitName)
DefaultLogFormatter
public DefaultLogFormatter(java.lang.String unitName,
boolean appendLineEnd)
format
public java.lang.String format(java.util.logging.LogRecord record)
- Specified by:
format
in class java.util.logging.Formatter