[logback-user] Transport protocol for SMTPAppender

ceki ceki at qos.ch
Fri Dec 16 18:43:39 CET 2011


On 16.12.2011 11:04, kalgon wrote:
>
> Hi,
>
> is it possible to define what protocol (mail.transport.protocol) to use with
> SMTPAppender other than through System properties which are global? Logging
> important info which must be sent by mail must be part of my tests and for
> that purpose, I've made a MockTransport that I would like to use.
>
> Thanks,
>
> Xavier

SMTPAppenderBase does not take into account mail.transport.protocol.
However, you could modify it to fit your requirements.  I suggest
forking and sending a pull request.

Cheers,
-- 
Ceki
http://twitter.com/#!/ceki


More information about the Logback-user mailing list