#####################log4j.properties#####################
##### Global Log Level(FATAL,Error,WARN,INFO,DEBUG) #############
log4j.rootLogger=ERROR
#### DAO ########
log4j.logger.com.baidu.dao=INFO,DAO
##### Service #############
log4j.logger.com.baidu.service=ERROR,SERVICE
##### WEB#############
log4j.logger.com.baidu.web=INFO,WEB
###### DAO Logger ###############
log4j.appender.DAO=org.apache.log4j.RollingFileAppender
log4j.appender.DAO.File=d:/logs/dao.log
log4j.appender.DAO.MaxFileSize=1024KB
log4j.appender.DAO.MaxBackupIndex=5
log4j.appender.DAO.Append=true
log4j.appender.DAO.layout=org.apache.log4j.PatternLayout
log4j.appender.DAO.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss,SSS} [%c]-[%p] %m%n
##### SERVICE Logger #############
log4j.appender.SERVICE=org.apache.log4j.RollingFileAppender
log4j.appender.SERVICE.File=d:/logs/service.log
log4j.appender.SERVICE.MaxFileSize=1024KB
log4j.appender.SERVICE.MaxBackupIndex=5
log4j.appender.SERVICE.Append=true
log4j.appender.SERVICE.layout=org.apache.log4j.PatternLayout
log4j.appender.SERVICE.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss,SSS} [%c]-[%p] %m%n
##### WEB Logger #############log4j.appender.SERVICE=org.apache.log4j.RollingFileAppenderlog4j.appender.SERVICE.File=d:/logs/web.loglog4j.appender.SERVICE.MaxFileSize=1024KBlog4j.appender.SERVICE.MaxBackupIndex=5log4j.appender.SERVICE.Append=truelog4j.appender.SERVICE.layout=org.apache.log4j.PatternLayoutlog4j.appender.SERVICE.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss,SSS} [%c]-[%p] %m%n