com.lightdev.app
Class LogFormatter


java.lang.Object

  extended by java.util.logging.Formatter

      extended by java.util.logging.XMLFormatter

          extended by com.lightdev.app.LogFormatter


public class LogFormatter
extends XMLFormatter

format log messages for output to an XML file

Version:
2, February 12, 2004
Author:
Ulrich Hilger, Light Development, http://www.lightdev.com, info@lightdev.com, published under the terms and conditions of the GNU General Public License, for details see file in the distribution package of this software as well as any licensing notes inside this documentation

Constructor Summary
LogFormatter()
          constructor
 
Method Summary
 String format(LogRecord r)
          format the given log record
 String getHead(Handler h)
          get the header string
 String getTail(Handler h)
          get the trailing string
 
Methods inherited from class java.util.logging.Formatter
formatMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogFormatter


public LogFormatter()
constructor

Method Detail

format


public String format(LogRecord r)
format the given log record

Overrides:
format in class XMLFormatter
Parameters:
r - LogRecord the record to format
Returns:
String the formatted log message

getHead


public String getHead(Handler h)
get the header string

Overrides:
getHead in class XMLFormatter
Parameters:
h - Handler the handler
Returns:
String the header string

getTail


public String getTail(Handler h)
get the trailing string

Overrides:
getTail in class XMLFormatter
Parameters:
h - Handler the handler
Returns:
String the trailing string

Copyright (c) 2004, 2005 Ulrich Hilger