log4j.properties 1.3 KB

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