jwo.utils
Class JWLogFormatter

java.lang.Object
  extended byjava.util.logging.Formatter
      extended byjava.util.logging.SimpleFormatter
          extended byjwo.utils.JWLogFormatter

public class JWLogFormatter
extends SimpleFormatter

Creates a simple and terse formatting for Logger output. This is similar to the 'SimpleFormatter' provided as part of the standard class library, but does not display the originating class name and ouputs each entry on a single line.

Version:
2.2, 23rd February, 2004.
Author:
Jo Wood

Constructor Summary
JWLogFormatter()
          Initialises the formatter.
 
Method Summary
 String format(LogRecord record)
          Formats output for the logger.
static String formatRecord(LogRecord record)
          Factory method that formats a given logging 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
 

Constructor Detail

JWLogFormatter

public JWLogFormatter()
Initialises the formatter.

Method Detail

format

public String format(LogRecord record)
Formats output for the logger.

Parameters:
record - Unformatted log information to be used to create output.
Returns:
Formatted version of the record.

formatRecord

public static String formatRecord(LogRecord record)
Factory method that formats a given logging record.

Parameters:
record - Unformatted log information to be used to create output.
Returns:
Formatted version of the record.


Copyright Jo Wood, 1996-2005, last modified, 11th March, 2005