org.apache.avalon.excalibur.logger.factory
クラス JMSTargetFactory

java.lang.Object
  |
  +--org.apache.avalon.excalibur.logger.factory.JMSTargetFactory
すべての実装インタフェース:
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>
 

バージョン:
CVS $Revision: 1.2 $ $Date: 2001/12/19 23:36:25 $
作成者:
Mircea Toma;

コンストラクタの概要
JMSTargetFactory()
           
 
メソッドの概要
 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)
           
 
クラス 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
インタフェース LogTargetFactory の記述:
Create a LogTarget based on a Configuration
定義:
インタフェース LogTargetFactory 内の createTarget

getFormatter

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


"Copyright ? 2001 Apache Jakarta Project. All Rights Reserved."