1 Reply Latest reply on Feb 5, 2008 4:03 PM by babygodzilla

    log4j config help

    babygodzilla

      i followed instructions here http://www.techienuggets.com/Detail?tx=33 to create configurations such that log4j will send emails containing Error messages to a certain email.

      log4j.appender.Mail=org.apache.log4j.net.SMTPAppender
      log4j.appender.Mail.SMTPHost=smtp.gmail.com
      log4j.appender.Mail.SMTPUsername=xxxxxxx
      log4j.appender.Mail.SMTPPassword=xxxxxxx
      log4j.appender.Mail.To=xxxxxxxx
      log4j.appender.Mail.From=xxxxxx
      log4j.appender.Mail.Subject=Error Messages
      log4j.appender.Mail.layout=org.apache.log4j.PatternLayout
      log4j.appender.Mail.layout.ConversionPattern=%d{ISO8601} %p %C{1} %L - %m%n
      log4j.appender.Mail.threshold=ERROR


      I know for sure there are ERROR messages that should be sent, because I log em to a different .log file as well. but so far I haven't seen any emails sent, nor have i seen any errors/exceptions with regard to these settings. how do i test this so i know its working, or what is wrong?

      thank you