log4j.rootLogger=INFO,I,E

##INFO
log4j.appender.I = org.apache.log4j.DailyRollingFileAppender
log4j.appender.I.threshold = INFO
log4j.appender.I.File = ${catalina.base}/logs/tom.info
log4j.appender.I.DatePattern = '.'yyyy-MM-dd'.log'
log4j.appender.I.layout = org.apache.log4j.PatternLayout
log4j.appender.I.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} %p %t %c - %m%n

##ERROR
log4j.appender.E = org.apache.log4j.DailyRollingFileAppender
log4j.appender.E.threshold = ERROR
log4j.appender.E.File = ${catalina.base}/logs/tom.error
log4j.appender.E.DatePattern = '.'yyyy-MM-dd'.log'
log4j.appender.E.layout = org.apache.log4j.PatternLayout
log4j.appender.E.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} %p %t %c - %m%n
