log4j.properties 配置
#log4j.appender.R=org.apache.log4j.ConsoleAppender
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=${catalina.home}/logs/sdc.log
log4j.appender.R.MaxBackupIndex=10
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss,SSS} [%c]-[%p] %m%n
log4j.rootLogger=ERROR, R
log4j.logger.sap=DEBUG, R
log4j.additivity.sap=false
log4j.logger.org.apache.catalina=ERROR, R
log4j.additivity.org.apache.catalina=false
log4j.logger.org.hibernate.SQL=ERROR, R
log4j.additivity.org.hibernate.SQL=false