log4j.properties 776 B

123456789101112131415161718
  1. # Global logging configuration
  2. log4j.rootLogger=WARN, stdout, fileout
  3. log4j.logger.org.springframework.security=DEBUG, stdout, fileout
  4. # Console output...
  5. log4j.appender.stdout=org.apache.log4j.ConsoleAppender
  6. log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
  7. log4j.appender.stdout.layout.conversionPattern=[%p,%c{1},%t] %m%n
  8. # Rolling log file output...
  9. log4j.appender.fileout=org.apache.log4j.RollingFileAppender
  10. log4j.appender.fileout.File=contacts.log
  11. #log4j.appender.fileout.File=${webapp.root}/WEB-INF/log4j.log
  12. log4j.appender.fileout.MaxFileSize=1024KB
  13. log4j.appender.fileout.MaxBackupIndex=1
  14. log4j.appender.fileout.layout=org.apache.log4j.PatternLayout
  15. log4j.appender.fileout.layout.conversionPattern=%d{ABSOLUTE} %5p %c{1},%t:%L - %m%n