Java WebChat Bot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

log4j.properties 695B

123456789101112131415161718
  1. #### Use two appenders, one to log to console, another to log to a file
  2. log4j.rootCategory=INFO, stdout, file
  3. #### First appender writes to console
  4. log4j.appender.stdout=org.apache.log4j.ConsoleAppender
  5. log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
  6. log4j.appender.stdout.layout.ConversionPattern=%m%n
  7. #### Second appender writes to a file
  8. log4j.appender.file=org.apache.log4j.RollingFileAppender
  9. log4j.appender.file.File=${jbot.logfile}
  10. # Control the maximum log file size
  11. log4j.appender.file.MaxFileSize=500KB
  12. log4j.appender.file.MaxBackupIndex=3
  13. log4j.appender.file.layout=org.apache.log4j.PatternLayout
  14. log4j.appender.file.layout.ConversionPattern=%d [%t] %-5p %m (%F:%L)%n