log4j.properties 1.1 KB

1234567891011121314151617181920212223
  1. log4j.rootLogger=INFO,ConsoleAppender,RollingLogFileAppender
  2. ## class setting
  3. log4j.logger.org.springframework=INFO
  4. log4j.logger.org.apache.axis=INFO
  5. log4j.logger.org.apache.cxf=INFO
  6. log4j.logger.com.mchange.v2=INFO
  7. log4j.appender.RollingLogFileAppender=org.apache.log4j.DailyRollingFileAppender
  8. log4j.appender.RollingLogFileAppender.Threshold=INFO
  9. log4j.appender.RollingLogFileAppender.ImmediateFlush=true
  10. log4j.appender.RollingLogFileAppender.File=../logs/EMS_Weather_2020_Monitor/log.log
  11. log4j.appender.RollingLogFileAppender.DatePattern=yyyy-MM-dd'.log'
  12. log4j.appender.RollingLogFileAppender.Append=true
  13. log4j.appender.RollingLogFileAppender.layout=org.apache.log4j.PatternLayout
  14. log4j.appender.RollingLogFileAppender.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %m%n
  15. log4j.appender.ConsoleAppender=org.apache.log4j.ConsoleAppender
  16. log4j.appender.ConsoleAppender.Threshold=INFO
  17. log4j.appender.ConsoleAppender.ImmediateFlush=true
  18. log4j.appender.ConsoleAppender.Target=System.out
  19. log4j.appender.ConsoleAppender.layout=org.apache.log4j.PatternLayout
  20. log4j.appender.ConsoleAppender.layout.ConversionPattern=%d{yyyy-MM-dd HH\:mm\:ss} %m%n