# This is the configuring for logging on the TaskSchedule
log4j.rootCategory=INFO ,stdout, logfile
log4j.rootLogger=INFO,stdout, R
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
# Pattern to output the caller's file name and line number.
log4j.appender.stdout.layout.ConversionPattern=%5p %d %c - %m%n
log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
#log4j.appender.R.File=${catalina.base}/logs/ysjweb.log
log4j.appender.R.File=ysjweb.log
log4j.appender.R.File.DatePattern = '_'yyyyMMdd
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%5p %d %c - %m%n
# for package
log4j.logger.org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping = WARN
#log4j.logger.org.springframework.web.context.support.XmlWebApplicationContext = WARN
<param-name>yjht</param-name>
<param-value>webName.root</param-value>
</context-param>
<context-param>
<param-name>log4jConfigLocation</param-name>
<param-value>WEB-INF/classes/log4j.properties</param-value>
</context-param>
<context-param>
<param-name>log4jRefreshInterval</param-name>
<param-value>3000</param-value>
</context-param>
<listener>
<listener-class>
org.springframework.web.util.Log4jConfigListener
</listener-class>
</listener>