org.apache.avalon.excalibur.logger.factory
Class JDBCTargetFactory
java.lang.Object
org.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
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 |
JDBCTargetFactory
public JDBCTargetFactory()
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-2010 Apache Software Foundation. All Rights Reserved.