org.apache.avalon.excalibur.logger.factory
Class JMSTargetFactory

java.lang.Object
  |
  +--org.apache.avalon.excalibur.logger.factory.JMSTargetFactory
All Implemented Interfaces:
LogTargetFactory

public class JMSTargetFactory
extends java.lang.Object
implements LogTargetFactory

Factory for JMS LogTarget-s. The configuration looks like this:

   <jms id="name">
           <connection-factory>java:/TopicConectionFactory</connection-factory>
           <destination type="topic|queue">jms/LogDestination</destination>
           <message type="object|text">

 -if type="text":
                   <property>
                           <category>CATEGORY</category>
                           <priority>PRIORITY</priority>
                           <time>TIME</time>
                           <rtime>RTIME</rtime>
                           <throwable>THROWABLE</throwable>
                           <hostname>HOSTNAME</hostname>
                           <static aux="234523454325">SYSTEM</static>
                           <context aux="principal">PRINCIPAL</context>
                           <context aux="ipaddress">IPADDRESS</context>
                           <context aux="username">USERNAME</context>
                   </property>
                   <format type="exteded">%7.7{priority} %5.5{time}   [%8.8{category}] (%{context}): %{message}\n%{throwable}</format>
           </message>
   </jms>
 

Version:
CVS $Revision: 1.2 $ $Date: 2001/12/19 23:36:25 $
Author:
Mircea Toma;

Constructor Summary
JMSTargetFactory()
           
 
Method Summary
 org.apache.log.LogTarget createTarget(org.apache.avalon.framework.configuration.Configuration configuration)
          Create a LogTarget based on a Configuration
protected  org.apache.log.format.Formatter getFormatter(org.apache.avalon.framework.configuration.Configuration conf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMSTargetFactory

public JMSTargetFactory()
Method Detail

createTarget

public org.apache.log.LogTarget createTarget(org.apache.avalon.framework.configuration.Configuration configuration)
                                      throws org.apache.avalon.framework.configuration.ConfigurationException
Description copied from interface: LogTargetFactory
Create a LogTarget based on a Configuration
Specified by:
createTarget in interface LogTargetFactory

getFormatter

protected org.apache.log.format.Formatter getFormatter(org.apache.avalon.framework.configuration.Configuration conf)


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.