All Downloads are FREE. Search and download functionalities are using the official Maven repository.

chapters.appenders.db.append-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="${dataSourceClass}">
       	 <!-- Joran cannot substitute variables
       	 that are not attribute values. Therefore, we cannot
       	 declare the next parameter like the others. 
       	 -->
         <param name="${url-key:-url}" value="${url}"/>
         <serverName>${serverName}</serverName>
         <databaseName>${databaseName}</databaseName>
       </dataSource>
       
       <user>${user}</user>
       <password>${password}</password>
     </connectionSource>
  </appender>

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







© 2015 - 2024 Weber Informatics LLC | Privacy Policy