jPOS 1.6.1 API Documentation

org.jpos.log4j
Class LogEventRenderer

java.lang.Object
  extended by org.jpos.log4j.LogEventRenderer
All Implemented Interfaces:
org.apache.log4j.or.ObjectRenderer

public class LogEventRenderer
extends java.lang.Object
implements org.apache.log4j.or.ObjectRenderer

This class can be used by the Log4J framework to render LogEvents objects.

 Add the following section into the Log4J configuration
 file to use this renderer

 <renderer
     renderedClass="org.jpos.util.LogEvent"
     renderingClass="org.jpos.log4j.LogEventRenderer">
 </renderer>
 

Author:
Alejandro Revilla (based on Eoin's work)
See Also:
ObjectRenderer, LogEvent

Constructor Summary
LogEventRenderer()
           
 
Method Summary
 java.lang.String doRender(java.lang.Object o)
          Convert an ISOMsg to an XML representation that is suitable for logging.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogEventRenderer

public LogEventRenderer()
Method Detail

doRender

public java.lang.String doRender(java.lang.Object o)
Convert an ISOMsg to an XML representation that is suitable for logging.

Specified by:
doRender in interface org.apache.log4j.or.ObjectRenderer

jPOS.org