log4j.properties 1.3 KB

123456789101112131415161718192021222324252627282930
  1. log4j.rootLogger=info, stdout, errorlogfile,infologfile
  2. log4j.appender.stdout=org.apache.log4j.ConsoleAppender
  3. log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
  4. log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - <%m>%n
  5. log4j.appender.errorlogfile=org.apache.log4j.DailyRollingFileAppender
  6. log4j.appender.errorlogfile.File=d\:\\log\\wttargetreport\\error.log
  7. log4j.appender.errorlogfile.MaxFileSize=512KB
  8. # Keep three backup files.
  9. log4j.appender.errorlogfile.MaxBackupIndex=3
  10. log4j.appender.errorlogfile.Append = true
  11. log4j.appender.errorlogfile.Threshold = ERROR
  12. # Pattern to output: date priority [category] - message
  13. log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
  14. log4j.appender.logfile.layout.ConversionPattern=%d %p [%c] - %m%n %l%n
  15. log4j.appender.infologfile=org.apache.log4j.DailyRollingFileAppender
  16. log4j.appender.infologfile.File=d\:\\log\\wttargetreport\\info.log
  17. log4j.appender.infologfile.MaxFileSize=512KB
  18. # Keep three backup files.
  19. log4j.appender.infologfile.MaxBackupIndex=3
  20. log4j.appender.infologfile.Append = true
  21. log4j.appender.infologfile.Threshold = info
  22. # Pattern to output: date priority [category] - message
  23. log4j.appender.infologfile.layout=org.apache.log4j.PatternLayout
  24. log4j.appender.infologfile.layout.ConversionPattern=%d %p [%c] - %m%n %l%n