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
 LogTarget createTarget(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 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


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