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

java.lang.Object
  extended byorg.apache.avalon.excalibur.logger.factory.JDBCTargetFactory
All Implemented Interfaces:
LogTargetFactory

public class JDBCTargetFactory
extends java.lang.Object
implements LogTargetFactory

Factory for JDBCLogTarget-s. The configuration looks like this:

  <jdbc id="database">
      <datasource>java:/LogTargetDataSource</datasource>
      <normalized>true</normalized>
      <table name="LOG">
          <category>CATEGORY</category>
          <priority>PRIORITY</priority>
          <message>MESSAGE</message>
          <time>TIME</time>
          <rtime>RTIME</rtime>
          <throwable>THROWABLE</throwable>
          <hostname>HOSTNAME</hostname>
          <static aux="-">STATIC</static>
          <context aux="principal">PRINCIPAL</context>
          <context aux="ipaddress">IPADDRESS</context>
          <context aux="username">USERNAME</context>
      </table>
  </jdbc>
 

Version:
CVS $Revision: 1.10 $ $Date: 2004/03/10 13:54:50 $
Author:
Avalon Development Team

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

Constructor Detail

JDBCTargetFactory

public JDBCTargetFactory()
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
Throws:
org.apache.avalon.framework.configuration.ConfigurationException


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