log4j.properties 1.1 KB

123456789101112131415161718192021222324
  1. ***********************log4j.properties***********************
  2. log4j.rootLogger=info, stdout, root, error
  3. log4j.appender.stdout=org.apache.log4j.ConsoleAppender
  4. log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
  5. log4j.appender.stdout.layout.ConversionPattern=[%d{ISO8601}]%5p%6.6r(%C:%M) - %m%n
  6. log4j.appender.root=org.apache.log4j.RollingFileAppender
  7. log4j.appender.root.File= ${catalina.base}/logs/kettle_log.log
  8. log4j.appender.root.MaxFileSize=512KB
  9. log4j.appender.root.MaxBackupIndex=5
  10. log4j.appender.root.encoding=UTF-8
  11. log4j.appender.root.layout=org.apache.log4j.PatternLayout
  12. log4j.appender.root.layout.ConversionPattern=[%d{ISO8601}]%5p%6.6r(%C:%M) - %m%n
  13. log4j.appender.error=org.apache.log4j.RollingFileAppender
  14. log4j.appender.error.File= ${catalina.base}/logs/error_log.log
  15. log4j.appender.error.MaxFileSize=512KB
  16. log4j.appender.error.MaxBackupIndex=5
  17. log4j.appender.error.encoding=UTF-8
  18. log4j.appender.error.Threshold = ERROR
  19. log4j.appender.error.append=true
  20. log4j.appender.error.layout=org.apache.log4j.PatternLayout
  21. log4j.appender.error.layout.ConversionPattern=[%d{ISO8601}]%5p%6.6r(%C:%M) - %m%n