org.openhealthexchange.openpixpdq.ihe.log
Class Log4jLogger

java.lang.Object
  extended by org.openhealthexchange.openpixpdq.ihe.log.Log4jLogger
All Implemented Interfaces:
IMesaLogger

public class Log4jLogger
extends java.lang.Object
implements IMesaLogger

This class implements an IHE Actor logger that uses log4j. The MESA Logger interface is used because it was convenient. That interface should probably be renamed.

Version:
1.0 - Jan 12, 2006
Author:
Jim Firby

Constructor Summary
Log4jLogger()
           
 
Method Summary
 void writeAxiomElementMessage(org.apache.axiom.om.OMElement message)
          Writes out an Axiom OMElement message to the logger.
 void writeHL7Message(ca.uhn.hl7v2.model.Message message)
          Writes an HL7 message to the MESA log
 void writeSoapMessage(javax.xml.soap.SOAPMessage message)
          Writes a SOAP message to the MESA log
 void writeString(java.lang.String message)
          Writes a text string to the MESA log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log4jLogger

public Log4jLogger()
Method Detail

writeString

public void writeString(java.lang.String message)
Description copied from interface: IMesaLogger
Writes a text string to the MESA log

Specified by:
writeString in interface IMesaLogger
Parameters:
message - The text string to display

writeSoapMessage

public void writeSoapMessage(javax.xml.soap.SOAPMessage message)
Description copied from interface: IMesaLogger
Writes a SOAP message to the MESA log

Specified by:
writeSoapMessage in interface IMesaLogger
Parameters:
message - The SOAP message to display

writeAxiomElementMessage

public void writeAxiomElementMessage(org.apache.axiom.om.OMElement message)
Description copied from interface: IMesaLogger
Writes out an Axiom OMElement message to the logger.

Specified by:
writeAxiomElementMessage in interface IMesaLogger
Parameters:
message - the element to display

writeHL7Message

public void writeHL7Message(ca.uhn.hl7v2.model.Message message)
Description copied from interface: IMesaLogger
Writes an HL7 message to the MESA log

Specified by:
writeHL7Message in interface IMesaLogger
Parameters:
message - the HL7 message to display