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 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: 2002/08/07 13:37:00 $
Author:
Mircea Toma;

Constructor Summary
JMSTargetFactory()
           
 
Method Summary
 LogTarget createTarget(Configuration configuration)
          Create a LogTarget based on a Configuration
protected  Formatter getFormatter(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 LogTarget createTarget(Configuration configuration)
                       throws ConfigurationException
Description copied from interface: LogTargetFactory
Create a LogTarget based on a Configuration

Specified by:
createTarget in interface LogTargetFactory
ConfigurationException

getFormatter

protected Formatter getFormatter(Configuration conf)


Copyright © 2000-2003 Apache Jakarta Project. All Rights Reserved.