log4j.property

log4j.rootLogger=DEBUG,ERROR,console,rollingLogFile
#log4j.rootLogger=error,console,rollingLogFile
#Level: OFF,FATAL,ERROR,WARN,INFO,DEBUG,ALL
###################
# Console Appender
###################
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.Threshold=ERROR
log4j.appender.console.Target=System.out
log4j.appender.console.layout=org.apache.log4j.PatternLayout
log4j.appender.console.layout.ConversionPattern= [%p] %d %c - %m%n


########################
# Rolling File Appender
########################
#DailyRollingFileAppender
log4j.appender.rollingLogFile=org.apache.log4j.RollingFileAppender
log4j.appender.rollingLogFile.Encoding=GBK
log4j.appender.rollingLogFile.Threshold=ERROR
log4j.appender.rollingLogFile.File=${catalina.base}/logs/003xgameserverlog.log
log4j.appender.rollingLogFile.Append=true
log4j.appender.rollingLogFile.MaxFileSize=1024kB
log4j.appender.rollingLogFile.MaxBackupIndex=5
log4j.appender.rollingLogFile.layout=org.apache.log4j.PatternLayout
log4j.appender.rollingLogFile.layout.ConversionPattern=[%p] %d %c - %m%n
 
#set log file property
log4j.logger.org.usc=INFO
log4j.logger.org.apache.commons=INFO
log4j.logger.org.apache.struts2=ERROR
log4j.logger.org.springframework=INFO
log4j.logger.com.opensymphony.xwork2=INFO
log4j.logger.net.sf.ehcache=INFO
log4j.logger.com.mchange.v2=INFO
log4j.logger.freemarker.cache=INFO
log4j.logger.freemarker.beans=INFO
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值