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.7 $ $Date: 2004/03/10 13:54:50 $
- Author:
- Avalon Development Team
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 |
JMSTargetFactory
public JMSTargetFactory()
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
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
getFormatter
protected org.apache.log.format.Formatter getFormatter(org.apache.avalon.framework.configuration.Configuration conf)
Copyright © 1997-2009 Apache Software Foundation. All Rights Reserved.