org.jcoderz.commons.logging
Class XmlPrinter

java.lang.Object
  extended by org.jcoderz.commons.logging.LogPrinter
      extended by org.jcoderz.commons.logging.XmlPrinter

public final class XmlPrinter
extends LogPrinter

This printer formats the log messages into an Xml format and prints the log messages as a sequence of xml elements.


Constructor Summary
XmlPrinter()
          Creates a new instance of this.
 
Method Summary
 void print(PrintWriter printer, LogItem logRecord)
          Prints the log data using the supplied print writer in xml format.
 
Methods inherited from class org.jcoderz.commons.logging.LogPrinter
displayStackTrace, getDisplayOptions, getEntryForMoreStackTrace, setDisplayOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlPrinter

public XmlPrinter()
           throws InstantiationException
Creates a new instance of this. Allocates object pools and jaxb resources.

Throws:
InstantiationException - if an error occurs allocating the resources.
Method Detail

print

public void print(PrintWriter printer,
                  LogItem logRecord)
Prints the log data using the supplied print writer in xml format.

Specified by:
print in class LogPrinter
Parameters:
printer - The PrintWriter to use for printing the data.
logRecord - The log data to format into xml and print using printer.
See Also:
LogPrinter.print(PrintWriter, LogItem)


Copyright 2007 The jCoderZ Project.