首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 互联网 >

使用log4j在SSH集成环境中追踪异常

2013-08-29 
使用log4j在SSH集成环境中追踪错误log4j.appender.stdoutorg.apache.log4j.ConsoleAppenderlog4j.appende

使用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?

?

?

热点排行