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

java.lang.Object
  extended byorg.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.7 $ $Date: 2004/03/10 13:54:50 $
Author:
Avalon Development Team

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
Throws:
ConfigurationException

getFormatter

protected Formatter getFormatter(Configuration conf)


Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.