log4j.properties配置文件

  

log4j.appender.file.encoding=UTF-8spring

### direct log messages to stdout ###
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%napache

### direct messages to file hibernate.log ###
log4j.appender.file=org.apache.log4j.FileAppender
log4j.appender.file.File=${catalina.home}/logs/jx56.log
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%napp

### set log levels - for more verbose logging change 'info' to 'debug' ###ide

log4j.rootLogger=info, stdout,fileui

#log4j.logger.org.hibernate=info
#log4j.logger.org.hibernate=debughibernate

### log HQL query parser activity
#log4j.logger.org.hibernate.hql.ast.AST=debugdebug

### log just the SQL
log4j.logger.org.hibernate.SQL=debugget

### log JDBC bind parameters ###
#log4j.logger.org.hibernate.type=info
#log4j.logger.org.hibernate.type=debugit

### log schema export/update ###
#log4j.logger.org.hibernate.tool.hbm2ddl=debugio

### log HQL parse trees
#log4j.logger.org.hibernate.hql=debug

### log cache activity ###
#log4j.logger.org.hibernate.cache=debug

### log transaction activity
#log4j.logger.org.hibernate.transaction=debug

### log JDBC resource acquisition
log4j.logger.org.hibernate.jdbc=debug

### enable the following line if you want to track down connection ###
### leakages when using DriverManagerConnectionProvider ###
#log4j.logger.org.hibernate.connection.DriverManagerConnectionProvider=trace
log4j.logger.com.shjx.action = debug

### log JDBCTemplate log4j.logger.org.springframework.jdbc.core.JdbcTemplate = debug

相關文章
相關標籤/搜索