<div dir="ltr">Thanks, that solved the problem. <br>Eugen. <br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 21, 2012 at 9:01 PM, ceki <span dir="ltr"><<a href="mailto:ceki@qos.ch" target="_blank">ceki@qos.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Eugen,<br>
<br>
SMTPAppender takes a layout not an encoder.<br>
<br>
HTH,<br>
<br>
-- <br>
Ceki<br>
65% of statistics are made up on the spot<div class="im"><br>
<br>
On 21.12.2012 19:44, Eugen Paraschiv wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Hi,<br>
I am using logback 1.0.9 (along with slf4j 1.7.2); I have defined the<br>
following appender:<br>
<appender name="EMAIL" class="ch.qos.logback.classic.<u></u>net.SMTPAppender"><br>
         <!-- deny all events with a level below ERROR --><br>
         <filter class="ch.qos.logback.classic.<u></u>filter.ThresholdFilter"><br>
             <level>ERROR</level><br>
         </filter><br>
         <smtpHost><a href="http://email-smtp.us-east-1.amazonaws.com" target="_blank">email-smtp.us-east-<u></u>1.amazonaws.com</a><br></div>
<<a href="http://email-smtp.us-east-1.amazonaws.com" target="_blank">http://email-smtp.us-east-1.<u></u>amazonaws.com</a>></smtpHost><div class="im"><br>
         <username><u></u>AKIAJI6XLSOAQX3IW6HQ</<u></u>username><br>
         <password><u></u>AuSWMdcNObKqGGT550SR/<u></u>6vDrgh50vxgFrqZHwR2tTED</<u></u>password><br>
         <SSL>true</SSL><br></div>
         <to><a href="mailto:hanriseldon@gmail.com" target="_blank">hanriseldon@gmail.com</a> <mailto:<a href="mailto:hanriseldon@gmail.com" target="_blank">hanriseldon@gmail.com</a>><u></u></to><br>
         <from><a href="mailto:info@applieddatalabs.com" target="_blank">info@applieddatalabs.com</a><br>
<mailto:<a href="mailto:info@applieddatalabs.com" target="_blank">info@applieddatalabs.<u></u>com</a>></from><div><div class="h5"><br>
         <subject>${launchpad.origin}: %logger{20} - %m</subject><br>
         <encoder<br>
class="ch.qos.logback.classic.<u></u>encoder.PatternLayoutEncoder"><br>
             <pattern>prov - |${launchpad.origin}| %date [%thread]<br>
%-5level %logger{36} - %message%n</pattern><br>
         </encoder><br>
         <cyclicBufferTracker<br>
class="ch.qos.logback.core.<u></u>spi.CyclicBufferTrackerImpl"><br>
             <bufferSize>1000</bufferSize><br>
         </cyclicBufferTracker><br>
     </appender><br>
And I am now getting:<br>
20:41:10,925 |-ERROR in ch.qos.logback.core.joran.spi.<u></u>Interpreter@32:72<br>
- no applicable action for [encoder], current pattern is<br>
[[configuration][appender][<u></u>encoder]]<br>
20:43:04,138 |-ERROR in ch.qos.logback.core.joran.spi.<u></u>Interpreter@33:13<br>
- no applicable action for [pattern], current pattern is<br>
[[configuration][appender][<u></u>encoder][pattern]]<br>
<br>
Not sure why that is - I am doing anything wrong on the appender setup?<br>
Thanks.<br>
Eugen.<br>
<br>
--<br>
Eugen Paraschiv<br>
Senior Java Programmer, Optaros<br>
Mobile: <a href="tel:%2B40728896170" value="+40728896170" target="_blank">+40728896170</a><br></div></div>
Blog: <a href="http://www.baeldung.com" target="_blank">www.baeldung.com</a> <<a href="http://www.baeldung.com" target="_blank">http://www.baeldung.com</a>><br>
Twitter: <a href="https://twitter.com/baeldung" target="_blank">https://twitter.com/baeldung</a><br>
<br>
</blockquote>
<br>
<br>
______________________________<u></u>_________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch" target="_blank">Logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/<u></u>listinfo/logback-user</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Eugen Paraschiv<br>Senior Java Programmer, Optaros<br>Mobile: +40728896170<br>Blog: <a href="http://www.baeldung.com" target="_blank">www.baeldung.com</a><br>Twitter: <a href="https://twitter.com/baeldung" target="_blank">https://twitter.com/baeldung</a><br>

</div>