You need to use an xml configuration file to use DBAppender. Here's a Chainsaw config that should work to receive events created by DBAppender. Take the connectionsource section and use that in your DBAppender config (haven't tried this in a while but it should work).
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> <plugin name="MyDBReceiver" class="org.apache.log4j.db.DBReceiver"> <connectionSource class="org.apache.log4j.db.DriverManagerConnectionSource"> <param name="password" value="MYPASSWORD"/> <param name="user" value="MYUSER"/> <param name="driverClass" value="MYDRIVER"/> <param name="url" value="MYJDBCURL"/> </connectionSource> </plugin> <root> <level value="debug"/> </root> </log4j:configuration> Scott Deboy COMOTIV SYSTEMS 111 SW Columbia Street Ste. 950 Portland, OR 97201 Telephone: 503.224.7496 Cell: 503.997.1367 Fax: 503.222.0185 [EMAIL PROTECTED] www.comotivsystems.com -----Original Message----- From: Jonathan Gurfinkel [mailto:[EMAIL PROTECTED] Sent: Thu 1/19/2006 10:00 PM To: [email protected] Subject: Help Setting up logging with a DBAppender Hi would like to see an example properties file configuring a DBAppender properly using a DBConnectionSource. Thanks in advance ************** IMPORTANT MESSAGE ************** This email is intended only for the use of the individual or entity name above and may contain information that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copyright of this email is strictly prohibited. If you have received this email in error, please notify Remunerator (Aust) Pty Ltd on 61 3 9882 5000 immediately and destroy the original message.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
