logback输出mybatis的sql配置
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> |
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。