<?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="${pooledDataSourceClass}">
         <!-- Joran cannot handle element names which are variables themselves. In order to let  -->
         <!-- the property name vary, we use the <param> element.-->
         <param name="${url-key:-url}" value="${url}"/>
         <serverName>${serverName}</serverName>
         <databaseName>${databaseName}</databaseName>
         <user>${user}</user>
         <password>${password}</password>
                
         <initialConnections>10</initialConnections>
         <maxConnections>10</maxConnections>
       </dataSource>

     </connectionSource>
  </appender>

  <root>
    <level value ="debug"/>
    <appender-ref ref="DB" />
  </root>  
</configuration>


