[logback-user] SMTPAppender problem using gmail example

Federico Schroder fschroder at gmail.com
Wed Mar 10 00:56:00 CET 2010


Hello, I'm having problems trying to use the gmail example provided here:
http://logback.qos.ch/manual/appenders.html

My config is:

...
    <appender name="email" class="ch.qos.logback.classic.net.SMTPAppender">
        <SMTPHost>smtp.gmail.com</SMTPHost>
        <SMTPPort>465</SMTPPort>
        <SSL>true</SSL>
        <Username>yyy at gmail.com</Username>
        <Password>xxx</Password>
        <To>zzz at gmail.com</To>
        <From>aaa at no-reply.com</From>
        <Subject>APP ERROR: %class{20} - %m</Subject>
        <!-- deny all events with a level below ERROR -->
        <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
          <level>ERROR</level>
        </filter>
        <layout class="ch.qos.logback.classic.PatternLayout">
          <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1} -
%msg%n</pattern>
        </layout>
    </appender>
...

... and I'm getting this in the log:

19:41:03,031 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter at 38:16 - no
applicable action for [SMTPPort], current pattern is
[[configuration][appender][SMTPPort]]
19:45:30,244 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter at 39:11 - no
applicable action for [SSL], current pattern is
[[configuration][appender][SSL]]
19:45:40,367 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter at 40:16 - no
applicable action for [Username], current pattern is
[[configuration][appender][Username]]
19:45:40,740 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter at 41:16 - no
applicable action for [Password], current pattern is
[[configuration][appender][Password]]


Any suggestion on what could be wrong?
Thanks,
Federico
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://qos.ch/pipermail/logback-user/attachments/20100309/ed2f1aa7/attachment.html>


More information about the Logback-user mailing list