cz.cuni.amis.utils.logging
Class DefaultLogFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by 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
           
 
Constructor Summary
DefaultLogFormatter()
           
DefaultLogFormatter(java.lang.String unitName)
           
DefaultLogFormatter(java.lang.String unitName, boolean appendLineEnd)
           
 
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
 

Field Detail

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
Constructor Detail

DefaultLogFormatter

public DefaultLogFormatter()

DefaultLogFormatter

public DefaultLogFormatter(java.lang.String unitName)

DefaultLogFormatter

public DefaultLogFormatter(java.lang.String unitName,
                           boolean appendLineEnd)
Method Detail

format

public java.lang.String format(java.util.logging.LogRecord record)
Specified by:
format in class java.util.logging.Formatter