TEXT   19

log4j properties

Guest on 2nd May 2022 01:25:19 AM

  1. # Set root category priority to INFO and its only appender to CONSOLE.
  2. log4j.rootCategory=INFO, CONSOLE
  3. #log4j.rootCategory=INFO, CONSOLE, LOGFILE
  4.  
  5. # Set the enterprise logger category to FATAL and its only appender to CONSOLE.
  6. log4j.logger.org.apache.axis.enterprise=FATAL, CONSOLE
  7.  
  8. # CONSOLE is set to be a ConsoleAppender using a PatternLayout.
  9. log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
  10. log4j.appender.CONSOLE.Threshold=INFO
  11. log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
  12. log4j.appender.CONSOLE.layout.ConversionPattern=- %m%n
  13.  
  14. # LOGFILE is set to be a File appender using a PatternLayout.
  15. log4j.appender.LOGFILE=org.apache.log4j.FileAppender
  16. log4j.appender.LOGFILE.File=axis.log
  17. log4j.appender.LOGFILE.Append=true
  18. log4j.appender.LOGFILE.Threshold=INFO
  19. log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
  20. log4j.appender.LOGFILE.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n

Raw Paste


Login or Register to edit or fork this paste. It's free.