日期:2014-05-20 浏览次数:20803 次
<span style="color: #0000ff;"># For JBoss: Avoid to setup Log4J outside $JBOSS_HOME/server/default/deploy/log4j.xml!
# For all other servers: Comment out the Log4J listener in web.xml to activate Log4J.
log4j.rootLogger=INFO,stdout,syslog
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - %m%n
log4j.appender.syslog=org.apache.log4j.RollingFileAppender
log4j.appender.syslog.layout=org.apache.log4j.PatternLayout
log4j.appender.syslog.layout.ConversionPattern=%d %p [%c] - %m%n
log4j.appender.syslog.File=../logs/kaila/syslog.log
log4j.appender.syslog.MaxFileSize=1024KB
log4j.appender.syslog.MaxBackupIndex=10
log4j.logger.revice = info,revice
log4j.appender.revice =org.apache.log4j.DailyRollingFileAppender
log4j.appender.revice.layout=org.apache.log4j.PatternLayout
log4j.appender.revice.layout.ConversionPattern=%d %p [%c] - %m%n
log4j.appender.revice.File=../logs/kaila/revice.log
log4j.appender.revice.DatePattern='.'yyyy-MM-dd'.log'
log4j.logger.report = info,report
log4j.appender.report =org.apache.log4j.DailyRollingFileAppender
log4j.appender.report.layout=org.apache.log4j.PatternLayout
log4j.appender.report.layout.ConversionPattern=%d %p [%c] - %m%n
log4j.appender.report.File=../logs/kaila/report.log
log4j.appender.report.DatePattern='.'yyyy-MM-dd'.log'</span>