[logback-user] SMTPAppender problem using gmail example

Ceki Gülcü ceki at qos.ch
Wed Mar 10 08:41:59 CET 2010


The config file snippet looks good. I really don't see how the error you are 
seeing could occur. Which version of logback are you using?

You could you also provide the whole config file?

On 10/03/2010 12:56 AM, Federico Schroder wrote:
> 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>http://smtp.gmail.com</SMTPHost>
> <SMTPPort>465</SMTPPort>
> <SSL>true</SSL>
> <Username>yyy at gmail.com</Username>
> <Password>xxx</Password>
> <To>zzz at gmail.com <mailto:zzz at gmail.com></To>
> <From>aaa at no-reply.com <mailto: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


More information about the Logback-user mailing list