[logback-user] SMTPAppender
Ed Bras
zooi at debrasjes.com
Mon Dec 20 16:54:39 CET 2010
Yep, that did the trick.
Sorry, I have missed that option in the manual, was searching something like
that.
Now I can see what's going wrong in production when the SMTPAppender doesn't
do his work.
Just tested it by changing the password:
---
16:53:00,786 |-ERROR in ch.qos.logback.classic.net.SMTPAppender[EMAIL] -
Error occured while sending e-mail notification.
javax.mail.AuthenticationFailedException
at javax.mail.AuthenticationFailedException
at at javax.mail.Service.connect(Service.java:319)
at at javax.mail.Service.connect(Service.java:169)
at at javax.mail.Service.connect(Service.java:118)
at at javax.mail.Transport.send0(Transport.java:188)
at at javax.mail.Transport.send(Transport.java:118)
Thanks...
> -----Original Message-----
> From: logback-user-bounces at qos.ch [mailto:logback-user-bounces at qos.ch]
> On Behalf Of Ceki Gulcu
> Sent: maandag 20 december 2010 16:41
> To: logback users list
> Subject: Re: [logback-user] SMTPAppender
>
> Hi Ed,
>
> Here is the directive you are looking for.
>
>
> <configuration>
> <statusListener
> class="ch.qos.logback.core.status.OnConsoleStatusListener" />
>
> ... the rest of the configuration file
> </configuration>
>
> See also http://logback.qos.ch/manual/configuration.html#statusListener
>
> HTH,
>
> On 20.12.2010 15:18, Ed Bras wrote:
> > If an error occurs during sending in the SMTPAppender, it adds a
> status.
> > How can I see these status messages such that I see the details of
> the
> > sending exception?
> > I would like these status messages to appear in my stdout or log
> file..
> >
> > Regards,
> > Ed
> >
>
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://qos.ch/mailman/listinfo/logback-user
More information about the Logback-user
mailing list