I recommend that you set a breakpoint in the SMTPAppender class 
and step through the code.

-Sean


> -----Original Message-----
> From: Raziel Steinmetz [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 04, 2003 3:02 PM
> To: 'Log4J Users List'
> Subject: RE: SMTPAppender not sending emails
> 
> Thanks Sean,
> 
> But I don't even get FATAL Log events (logger.fatal("test msg");) and I
> tried setting the buffer size to 1 and log a few fatal messages but I
> still
> didn't got any email (or error).
> 
> Raz.
> 
> -----Original Message-----
> From: Sullivan, Sean C - MWT [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 04, 2003 5:57 PM
> To: 'Log4J Users List'
> Subject: RE: SMTPAppender not sending emails
> 
> 
> 
> By default, the SMTPAppender buffers all LogEvent's in a
> cyclic buffer.
> 
> It will send email messages when:
> 
> 1) an ERROR LogEvent occurs
> 2) a FATAL LogEvent occurs
> 
> DEBUG messages will NOT cause an email message.
> 
> If you want different behavior, you will need to provide a custom
> TriggeringEventEvaluator class.
> 
> -Sean
> 
>  p.s. - I ported SMTPAppender to java.util.logging
> 
>               http://smtphandler.sourceforge.net/
> 
> 
> > -----Original Message-----
> > From: Raziel Steinmetz [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, December 04, 2003 2:51 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: SMTPAppender not sending emails
> >
> > Hello,
> >
> > I'm trying to use the SMTPAppender to send an email for error and fatal
> > logging. The ConsoleAppender is working OK and I see all the messages on
> > the
> > console but for some reason I don't get any email. I turned on the
> > log4j.debug to look for some kind of error - but nothing, all looks OK.
> >
> > Here is my config file :
> >
> > log4j.rootLogger=DEBUG,  Console, SMTP
> > # trun log4j internal debugging
> > log4j.debug
> >
> > # **** Console Appender (sending its output to System.out) ******
> > log4j.appender.Console=org.apache.log4j.ConsoleAppender
> > log4j.appender.Console.layout=org.apache.log4j.PatternLayout
> > log4j.appender.Console.layout.ConversionPattern=%d: [%-5p] %c.%M() -
> %m%n
> >
> > # **** SMTP Appender ******
> > log4j.appender.SMTP=org.apache.log4j.net.SMTPAppender
> > [EMAIL PROTECTED]
> > [EMAIL PROTECTED]
> > log4j.appender.SMTP.SMTPHost=my_host
> > log4j.appender.SMTP.Subject=testing
> > log4j.appender.SMTP.layout=org.apache.log4j.HTMLLayout
> >
> >

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to