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
#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