使用log4j在SSH集成环境中追踪错误
log4j.appender.stdout=org.apache.log4j.ConsoleAppenderlog4j.appender.stdout.Target=System.outlog4j.appender.stdout.layout=org.apache.log4j.PatternLayoutlog4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%nlog4j.rootLogger=info, stdoutlog4j.logger.org.hibernate.tool.hbm2ddl=tracelog4j.logger.org.hibernate.testing.cache=debug# SQL Logging - HHH-6833log4j.logger.org.hibernate.SQL=debuglog4j.logger.org.hibernate.hql.internal.ast=debuglog4j.logger.org.hibernate.sql.ordering.antlr=debug
?then: restart your ?sever ?,you will ?see ?the ?better ?debug ?information?
it's very useful ?when you ?meet ?some problems ?when ?there's ?no ?detailed ?information ?offered ?by?
your ?sever
of course , you ?can ?define your ?debug level ?by ?redefining ?this ?file ?with ?the ?help of ?source code?
?
?