赞
踩
- <dependency>
- <groupId>ch.qos.logback</groupId>
- <artifactId>logback-classic</artifactId>
- <version>1.1.2</version>
- </dependency>
- <dependency>
- <groupId>ch.qos.logback</groupId>
- <artifactId>logback-core</artifactId>
- <version>1.1.2</version>
- </dependency>
- <dependency>
- <groupId>com.oracle</groupId>
- <artifactId>ojdbc14</artifactId>
- <version>10.2.0.3.0</version>
- </dependency>
- <dependency>
- <groupId>com.mchange</groupId>
- <artifactId>c3p0</artifactId>
- <version>0.9.5</version>
- </dependency>
- <appender name="file.oracle" class="ch.qos.logback.classic.db.DBAppender">
- <connectionSource class="ch.qos.logback.core.db.DataSourceConnectionSource">
- <dataSource class="com.mchange.v2.c3p0.ComboPooledDataSource">
- <driverClass>oracle.jdbc.driver.OracleDriver</driverClass>
- <jdbcUrl>jdbc:oracle:thin:@127.0.0.1:1521:DBDEV</jdbcUrl>
- <user>user</user>
- <password>password</password>
- </dataSource>
- </connectionSource>
- </appender>
- <logger name="com.myproject.util.LogUtil" level="info">
- <appender-ref ref="file.oracle" />
- </logger>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。