log4j.properties 1.5 KB

123456789101112131415161718192021222324252627
  1. log4j.rootLogger=INFO,ConsoleAppender,RollingLogFileAppender
  2. log4j.appender.RollingLogFileAppender=org.apache.log4j.DailyRollingFileAppender
  3. log4j.appender.RollingLogFileAppender.Threshold=INFO
  4. log4j.appender.RollingLogFileAppender.ImmediateFlush=true
  5. log4j.appender.RollingLogFileAppender.File=log.log
  6. log4j.appender.RollingLogFileAppender.DatePattern=yyyy-MM-dd'.log'
  7. log4j.appender.RollingLogFileAppender.Append=true
  8. log4j.appender.RollingLogFileAppender.layout=org.apache.log4j.PatternLayout
  9. log4j.appender.RollingLogFileAppender.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %t %m%n
  10. log4j.appender.ConsoleAppender=org.apache.log4j.ConsoleAppender
  11. log4j.appender.ConsoleAppender.Threshold=INFO
  12. log4j.appender.ConsoleAppender.ImmediateFlush=true
  13. log4j.appender.ConsoleAppender.Target=System.out
  14. log4j.appender.ConsoleAppender.layout=org.apache.log4j.PatternLayout
  15. log4j.appender.ConsoleAppender.layout.ConversionPattern=%d{yyyy-MM-dd HH\:mm\:ss} %t %m%n
  16. log4j.logger.data_energydata_15minLogger= INFO, data_energydata_15min
  17. log4j.appender.data_energydata_15min=org.apache.log4j.DailyRollingFileAppender
  18. log4j.appender.data_energydata_15min.Threshold=INFO
  19. log4j.appender.data_energydata_15min.ImmediateFlush=true
  20. log4j.appender.data_energydata_15min.File=data_energydata_15min.log
  21. log4j.appender.data_energydata_15min.DatePattern=yyyy-MM-dd HH'.log'
  22. log4j.appender.data_energydata_15min.Append=true
  23. log4j.appender.data_energydata_15min.layout=org.apache.log4j.PatternLayout
  24. log4j.appender.data_energydata_15min.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %m%n