1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
<?xml version= "1.0"
encoding= "UTF-8" ?>
<configuration> <appender name= "console"
class = "ch.qos.logback.core.ConsoleAppender" >
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{ 36 } - %msg%n</pattern>
</encoder>
</appender>
<appender name= "rollingFile"
class = "ch.qos.logback.core.rolling.RollingFileAppender" >
<file>${catalina.base}/logs/carmall-manager.log</file>
<rollingPolicy class = "ch.qos.logback.core.rolling.TimeBasedRollingPolicy" >
<fileNamePattern>${catalina.base}/logs/carmall-manager.%d{yyyy-MM-dd}.log</fileNamePattern>
</rollingPolicy>
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{ 36 } - %msg%n</pattern>
</encoder>
</appender>
<!-- project default
level -->
<logger name= "cn.iautos.manager"
level= "debug"
/>
<!--log4jdbc -->
<logger name= "jdbc.sqltiming"
level= "debug" />
<logger name= "com.ibatis"
level= "debug"
/>
<logger name= "com.ibatis.common.jdbc.SimpleDataSource"
level= "debug"
/>
<logger name= "com.ibatis.common.jdbc.ScriptRunner"
level= "debug"
/>
<logger name= "com.ibatis.sqlmap.engine.impl.SqlMapClientDelegate"
level= "debug"
/>
<logger name= "java.sql.Connection"
level= "debug"
/>
<logger name= "java.sql.Statement"
level= "debug"
/>
<logger name= "java.sql.PreparedStatement"
level= "debug"
/>
<logger name= "java.sql.ResultSet"
level= "debug"
/>
<root level= "info" >
<appender-ref ref= "console"
/>
<appender-ref ref= "cn.iautos.manager"
/>
<appender-ref ref= "com.ibatis"
/>
<appender-ref ref= "rollingFile"
/>
</root>
</configuration> |
相关文章
- 10-20Mybatis是如何解析配置文件的?看完终于明白了
- 10-20mybatis下的ResultMap配置一对一以及一对多
- 10-20mybatis的配置和使用
- 10-20不需要写Sql语句的Mybatis工具:Tkmybatis
- 10-20mybatis-注解版<2>动态sql的bug
- 10-20springboot项目里,让tk-mybatis支持可以手写sql的mapper.xml文件
- 10-20Mybatis(dao层)基于注解模式的配置方式
- 10-20SpringBoot 配置tk.mybatis 的异常问题
- 10-20mybatis动态sql的标签
- 10-20Mybatis框架----->(5) 深入理解Mybatis封装输出的结果和模糊查询like