log4j.properties 971 B

1234567891011121314151617
  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 SSS} %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 SSS} %t %m%n