DEBUG [%nt] - Logging initialized using 'class org.apache.ibatis.logging.log4j.Log4jImpl' adapter.DE

DEBUG [%nt] - Logging initialized using ‘class org.apache.ibatis.logging.log4j.Log4jImpl’ adapter.DEBUG [%nt] - Class not found: org.jboss.vfs.VFSDEBUG [%nt] - JBoss 6 VFS API is not available in this environment.DEBUG [%nt] - Class not found: org.jboss.vfs.VirtualFileDEBUG [%nt] - VFS implementation org.apache.ibatis.io.JBoss6VFS is not valid in this environment.DEBUG [%nt] - Using VFS adapter org.apache.ibatis.io.DefaultVFSDEBUG [%nt] - Find JAR URL: file:/D:/maven.project/Ajax_day14/target/classes/com/liang/entityDEBUG [%nt] - Not a JAR: file:/D:/maven.project/Ajax_day14/target/classes/com/liang/entityDEBUG [%nt] - Reader entry: Category.classDEBUG [%nt] - Reader entry: Product.classDEBUG [%nt] - Listing file:/D:/maven.project/Ajax_day14/target/classes/com/liang/entityDEBUG [%nt] - Find JAR URL: file:/D:/maven.project/Ajax_day14/target/classes/com/liang/entity/Category.classDEBUG [%nt] - Not a JAR: file:/D:/maven.project/Ajax_day14/target/classes/com/liang/entity/Category.classDEBUG [%nt] - Reader entry: ���� 3 .DEBUG [%nt] - Find JAR URL: file:/D:/maven.project/Ajax_day14/target/classes/com/liang/entity/Product.classDEBUG [%nt] - Not a JAR: file:/D:/maven.project/Ajax_day14/target/classes/com/liang/entity/Product.classDEBUG [%nt] - Reader entry: ���� 3 tDEBUG [%nt] - Checking to see if class com.liang.entity.Category matches criteria [is assignable to Object]DEBUG [%nt] - Checking to see if class com.liang.entity.Product matches criteria [is assignable to Object]DEBUG [%nt] - Logging initialized using ‘class org.apache.ibatis.logging.log4j.Log4jImpl’ adapter.DEBUG [%nt] - PooledDataSource forcefully closed/removed all connections.DEBUG [%nt] - PooledDataSource forcefully closed/removed all connections.DEBUG [%nt] - PooledDataSource forcefully closed/removed all connections.DEBUG [%nt] - PooledDataSource forcefully closed/removed all connections.DEBUG [%nt] - Opening JDBC ConnectionDEBUG [%nt] - Created connection 817406040.DEBUG [%nt] - Setting autocommit to false on JDBC Connection [com.mysql.jdbc.JDBC4Connection@30b8a058]DEBUG [%nt] - > Preparing: select id, name, price, count, status, add_date, pic_path, description, cid from t_product where id = ? DEBUG [%nt] - > Parameters: 1(Integer)DEBUG [%nt] - < Total: 1Product{id=1, name=‘iphone6’, price=5999.0, count=100, status=1, addDate=Wed Dec 04 00:00:00 CST 2019, picPat
h=’/img/a.jpg’, description=‘世界上最好用的手机!’, cid=1}
=====
出错的原因不知道具体是什么 我把原来的log4j.properties中的内容改了

log4j.rootLogger=DEBUG, stdout

# SqlMap logging configuration...
log4j.logger.com.ibatis=DEBUG
log4j.logger.com.ibatis.common.jdbc.SimpleDataSource=DEBUG
log4j.logger.com.ibatis.sqlmap.engine.cache.CacheModel=DEBUG
log4j.logger.com.ibatis.sqlmap.engine.impl.SqlMapClientImpl=DEBUG
log4j.logger.com.ibatis.sqlmap.engine.builder.xml.SqlMapParser=DEBUG
log4j.logger.com.ibatis.common.util.StopWatch=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

# Console output...
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p [%%nt] - %m

改成了下面的代码

log4j.rootLogger=DEBUG, stdout ,fileout
#place level[ ERROR WARN INFO DEBUG] place

# Console output...
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%-5p %d{yyyy-MM-dd HH\:mm\:ss} %l : %m%n


log4j.appender.fileout=org.apache.log4j.FileAppender
log4j.appender.fileout.File=d:/log/test2.log
log4j.appender.fileout.layout=org.apache.log4j.PatternLayout
log4j.appender.fileout.layout.ConversionPattern=%-5p %d{yyyy-MM-dd HH\:mm\:ss} %l : %m%n


#注释  log4j.logger.包名=日志级别    控制某个包的日志级别
#com.liang.action包中(包含子包)类使用INFO级别
log4j.logger.com.liang.action=INFO

#struts2相liang关的info级别和debug级别的日志就输出
log4j.logger.com.opensymphony.xwork2=warn
log4j.logger.org.apache.struts2=warn

具体原因不清楚 。。。。。。。。

你可能感兴趣的:(DEBUG [%nt] - Logging initialized using 'class org.apache.ibatis.logging.log4j.Log4jImpl' adapter.DE)