chapters.appenders.db.append-toMySQL-with-datasource.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8" ?> <configuration> <appender name="DB" class="ch.qos.logback.classic.db.DBAppender"> <connectionSource class="ch.qos.logback.core.db.DataSourceConnectionSource"> <dataSource class="com.mysql.jdbc.jdbc2.optional.MysqlDataSource"> <serverName>${serverName}</serverName> <port>${port}</port> <databaseName>${dbName}</databaseName> <user>${user}</user> <password>${pass}</password> </dataSource> </connectionSource> </appender> <root level="debug"> <appender-ref ref="DB" /> </root> </configuration>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy