[logback-dev] svn commit: r1023 - logback/trunk/logback-examples/src/main/java/chapter4/conf/access
noreply.seb at qos.ch
noreply.seb at qos.ch
Tue Nov 28 20:55:24 CET 2006
Author: seb
Date: Tue Nov 28 20:55:24 2006
New Revision: 1023
Added:
logback/trunk/logback-examples/src/main/java/chapter4/conf/access/logback-DB.xml
Log:
Added a sample configuration for access' DBAppender
Added: logback/trunk/logback-examples/src/main/java/chapter4/conf/access/logback-DB.xml
==============================================================================
--- (empty file)
+++ logback/trunk/logback-examples/src/main/java/chapter4/conf/access/logback-DB.xml Tue Nov 28 20:55:24 2006
@@ -0,0 +1,14 @@
+<configuration>
+
+ <appender name="DB" class="ch.qos.logback.access.db.DBAppender">
+ <connectionSource class="ch.qos.logback.core.db.DriverManagerConnectionSource">
+ <driverClass>com.mysql.jdbc.Driver</driverClass>
+ <url>jdbc:mysql://localhost:3306/logbackdb</url>
+ <user>logback</user>
+ <password>logback</password>
+ </connectionSource>
+ <insertHeaders>true</insertHeaders>
+ </appender>
+
+ <appender-ref ref="DB" />
+</configuration>
\ No newline at end of file
More information about the logback-dev
mailing list