log4j.rootLogger=DEBUG
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.Threshold=DEBUG
log4j.appender.CONSOLE.Target=System.out
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=[%p] %d (%F:%L) - %m%n log4j.logger.org.springframework=ERROR log4j.logger.org.apache.ibatis=DEBUG
log4j.logger.java.sql=DEBUG
log4j.rootLogger=info, stdout, R
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=[service] %d - %c -%-4r [%t] %-5p %c %x - %m%n
log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
log4j.appender.R.File=../logs/service.log
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=[service] %d - %c -%-4r [%t] %-5p %c %x - %m%n
log4j.logger.com.ibatis = debug
log4j.logger.com.ibatis.common.jdbc.SimpleDataSource = debug
log4j.logger.com.ibatis.common.jdbc.ScriptRunner = debug
log4j.logger.com.ibatis.sqlmap.engine.impl.SqlMapClientDelegate = debug
log4j.logger.java.sql.Connection = debug
log4j.logger.java.sql.Statement = debug
log4j.logger.java.sql.PreparedStatement = debug
log4j.logger.java.sql.ResultSet =debug
Spring+mybatis+log4j在控制台输出sql语句
原创文章标签 log4j输出sql语句 mybaits输出sql语句 log4j打印sql语句 apache sql 文章分类 后端开发
-
控制台打印进度条
控制台打印进度条,实时展示任务进度。
进度条 System Java -
springboot+mybatis-plus在log控制台输出sql语句
方式二 增加logback日志。
mybatis spring boot sql apache sql语句 -
SpringBoot + Mybatis 在控制台输出sql语句 yml
log
xml javascript -
SpringBoot mybatis 输出SQL语句到控制台
配置文件 .yml中如下配置:logging: level: com.muyan.mapper: debug #打印sql config: classpath:logback.xmll
logback springboot 日志输出 xml 换行符 -
SpringBoot+Mybatis控制台输出sql语句
SpringBoot+Mybatis控制台pllogging: level: com.wjg.wjgspringboot0.dao: DEBUG
mybatis sql spring apache sql语句 -
mybatis 3.2.8 + log4j2.0.2 控制台输出sql语句
mybatis 2.3.8 + log4j2.0.2 整合
mybatis log4j2 xml apache github