de.goerntkai.toolbox.log
Class FileFormatter

java.lang.Object
  extended byjava.util.logging.Formatter
      extended byde.goerntkai.toolbox.log.FileFormatter

public class FileFormatter
extends java.util.logging.Formatter

The FileFormatter displays almost any information coming from the log record. The information which is changing the least often is found on the leftmost position. The information changing most often is found on the rightmost position. That helps keeping the columns in line and gives a better overview when reading the log.

The parameterlist is only displayed in case that the log level is ALL, FINER, FINEST, WARNING or SEVERE.

Any given Throwable is displayed only by its message. In case that the log level is ALL, FINEST, WARNING or SEVERE the Throwable will be listed with its stack trace trailing.

Version:
$Id: FileFormatter.java,v 1.5 2007/05/13 12:47:10 GoerntKai Exp $
Author:
Kai Görnt

Constructor Summary
FileFormatter()
          Standard Constructor.
 
Method Summary
 java.lang.String format(java.util.logging.LogRecord theRecord)
          Formats the log output.
 
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
 

Constructor Detail

FileFormatter

public FileFormatter()

Standard Constructor.

Method Detail

format

public final java.lang.String format(java.util.logging.LogRecord theRecord)

Formats the log output.

Parameters:
theRecord - to format
Returns:
the log output as a single line
See Also:
Formatter.format(java.util.logging.LogRecord)


Copyright © 2004-2007 Kai Görnt. All Rights Reserved.