log4j.properties 1.3 KB

123456789101112131415161718192021222324252627282930
  1. log4j.rootLogger=info, stdout, errorlogfile,debuglogfile
  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=c\:\\edostooutedos\\logs01\\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.debuglogfile=org.apache.log4j.DailyRollingFileAppender
  16. log4j.appender.debuglogfile.File=c\:\\edostooutedos\\logs01\\debug.log
  17. log4j.appender.debuglogfile.MaxFileSize=512KB
  18. # Keep three backup files.
  19. log4j.appender.debuglogfile.MaxBackupIndex=3
  20. log4j.appender.debuglogfile.Append = true
  21. log4j.appender.debuglogfile.Threshold = DEBUG
  22. # Pattern to output: date priority [category] - message
  23. log4j.appender.debuglogfile.layout=org.apache.log4j.PatternLayout
  24. log4j.appender.debuglogfile.layout.ConversionPattern=%d %p [%c] - %m%n %l%n