cz.cuni.amis.utils.logging
Class DefaultLogFormatter

Package class diagram package DefaultLogFormatter
java.lang.Object
  extended by java.util.logging.Formatter
      extended by cz.cuni.amis.utils.logging.DefaultLogFormatter

public class DefaultLogFormatter
extends Formatter

Pogamut custom formatter used as default.

Author:
Jimmy

Field Summary
protected  String lineEnd
           
protected  boolean lineEnds
          Whether to append lineEnd after the log message.
protected  String name
           
static String[] whitespaces
           
 
Constructor Summary
DefaultLogFormatter()
           
DefaultLogFormatter(String unitName)
           
DefaultLogFormatter(String unitName, boolean appendLineEnd)
           
 
Method Summary
 String format(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 String lineEnd

name

protected String name

whitespaces

public static final String[] whitespaces
Constructor Detail

DefaultLogFormatter

public DefaultLogFormatter()

DefaultLogFormatter

public DefaultLogFormatter(String unitName)

DefaultLogFormatter

public DefaultLogFormatter(String unitName,
                           boolean appendLineEnd)
Method Detail

format

public String format(LogRecord record)
Specified by:
format in class Formatter


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.