[logback-user] SMTPAppender mail not sent (logback 1.0.0, JDK 1.5)

Louis-Félix louisfelix at gmail.com
Thu Jan 19 16:51:36 CET 2012


About this issue,
I would like to add that when I use the "OnConsoleStatusListener" to print
status messages, there is no particular error:

10:36:46,749 |-INFO in ch.qos.logback.core.joran.action.AppenderAction -
About to instantiate appender of type
[ch.qos.logback.classic.net.SMTPAppender]
10:36:46,763 |-INFO in ch.qos.logback.core.joran.action.AppenderAction -
Naming appender as [courriel]
10:36:46,805 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
Setting level of logger [xx.yy.zzz] to INFO
10:36:46,806 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction
- Setting level of ROOT logger to INFO
10:36:46,806 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction -
Attaching appender named [fichier] to Logger[ROOT]
10:36:46,806 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction -
Attaching appender named [courriel] to Logger[ROOT]
10:36:46,806 |-INFO in
ch.qos.logback.classic.joran.JoranConfigurator at 6273305c - Registering
current configuration as safe fallback point
10:36:46,811 |-INFO in ch.qos.logback.classic.net.SMTPAppender[courriel] -
SMTPAppender [courriel] is tracking [1] buffers

Thanks,
Louis-Félix


2012/1/18 Louis-Félix <louisfelix at gmail.com>

> Hi,
>
> I upgraded to logback 1.0.0 in a web application (tomcat 5, JDK 1.5), and
> the ERROR email are not sent anymore from the SMTPAppender.
> When I rollback my logback-core and logback-classic JARs to version
> 0.9.30, it's working again.
>
> I have a simple config:
>
>     <appender name="courriel"
> class="ch.qos.logback.classic.net.SMTPAppender">
>         <smtpHost>smtp.xxx.xx.xx</smtpHost>
>         <to>xxx at xxx.xx.xx</to>
>         <from>no-reply.ti at xxx.xx.xx</from>
>         <subject>Test</subject>
>         <cyclicBufferTracker
> class="ch.qos.logback.core.spi.CyclicBufferTrackerImpl">
>             <bufferSize>25</bufferSize>
>         </cyclicBufferTracker>
>         <layout class="ch.qos.logback.classic.html.HTMLLayout">
>             <pattern>%date%level%thread%logger%line%message</pattern>
>         </layout>
>     </appender>
>
> I am using logback 1.0.0 with no problem in an other project (with JDK
> 1.6).
> Is there any known compatibility problem between logback 1.0.0 and JDK 1.5?
>
> Thanks,
> Louis-Félix
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20120119/40861a4a/attachment.html>


More information about the Logback-user mailing list