log4j 2.x 打印mybatis select的结果
来源:互联网 发布:下载免费大片软件 编辑:程序博客网 时间:2024/06/18 18:37
需要把dao包的log level为trace:
<Loggers><Root level="warn"> <!-- 全局配置 --><AppenderRef ref="Console" /><AppenderRef ref="RollingFile"/></Root><!-- 为某些包/类配置特别的Log级别 --><Logger name="com.xjj" level="debug" additivity="false"><AppenderRef ref="Console" /></Logger><Logger name="com.xjj.dao" level="trace" additivity="false"><AppenderRef ref="Console" /></Logger><Logger name="org.springframework.cache" level="error" additivity="false"><AppenderRef ref="Console" /></Logger></Loggers>其他关于log4j 2.x的配置请参考:http://blog.csdn.net/clementad/article/details/44625787
效果如下:
如果Logger name="com.xjj.dao" level="debug",则上图中的红色部分是不会出现的。
(原创文章,转载请注明转自Clement-Xu的csdn博客。)
0 0
- log4j 2.x 打印mybatis select的结果
- mybatis下使用log4j打印sql语句和执行结果
- mybatis下使用log4j打印sql语句和执行结果
- 配置log4j 打印mybatis sql以及执行结果
- mybatis打印日志的log4j.xml配置
- mybatis打印日志的log4j.xml配置
- mybatis+log4j 打印sql
- mybatis打印log4j日志
- LOG4J打印mybatis问题
- mybatis log4j打印sql
- 打印mybatis语句的 log4j文件 log4j.xml
- mybatis 利用log4j 打印sql
- log4j打印mybatis完整sql
- mybatis使用log4j打印sql
- mybatis 使用log4j打印sql
- mybatis使用log4j打印sql
- log4j配置mybatis打印sql
- log4j.properties打印mybatis 日志
- java 多线程内存模型
- Android 中关于 Cursor 类的介绍
- java中FTP下载文件
- iOS strong和weak的异同
- 怎样把centos 6.5 系统里的网卡em1还原为eth0
- log4j 2.x 打印mybatis select的结果
- iOS 如何隔绝UITableViewCell中UIButton的连续点击事件
- 作业8.15
- 如何让new 操作 不分配内存 只调用构造函数
- RevitAPI: FamilyManager.Set - InvalidOperationException: There is no current type
- LeetCode-Isomorphic Strings-解题报告
- IOS图像9之自定义侧划栏(类似新浪微博Swift)
- 静态内部类和非静态内部类的区别
- 对象调用很容易忽视的地址问题