log4j.properties 1.0 KB

1234567891011121314151617181920212223
  1. # For JBoss: Avoid to setup Log4J outside $JBOSS_HOME/server/default/deploy/log4j.xml!
  2. # For all other servers: Comment out the Log4J listener in web.xml to activate Log4J.
  3. log4j.rootLogger=INFO, stdout, logfile
  4. log4j.appender.stdout=org.apache.log4j.ConsoleAppender
  5. log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
  6. log4j.appender.stdout.layout.ConversionPattern=%d %p [%c]:%m%n
  7. log4j.appender.logfile=org.apache.log4j.RollingFileAppender
  8. log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
  9. log4j.appender.logfile.File=../log4j.log
  10. # Keep three backup files.
  11. log4j.appender.logfile.MaxBackupIndex=3
  12. log4j.appender.logfile.MaxFileSize=5120KB
  13. # Pattern to output: date priority [category] - message
  14. log4j.appender.logfile.layout.ConversionPattern=%d %p [%c]:%m%n
  15. #log4j.logger.org.springframework.samples.petclinic.aspects=DEBUG
  16. log4j.logger.com.mvc.rest = info
  17. #=========================================
  18. #= spring framewokr log configuration =
  19. #=========================================
  20. log4j.logger.org.springframework = info