[logback-user] SMTPAppender

Ceki Gulcu ceki at qos.ch
Mon Dec 20 16:41:14 CET 2010


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
>



More information about the Logback-user mailing list