Ceki,<br><br>That should be created now.<br><br>Thank you for the response.<br><br>Patrick<br><br><div class="gmail_quote">On 16 August 2012 14:37, 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 Patrick,<br>
<br>
It's a bug in SMTPAppender and has nothing to do with encoders. Could you please file a jira issue for this bug?<br>
<br>
Thank you,<br>
<br>
-- <br>
Ceki<br>
<a href="http://tinyurl.com/proLogback" target="_blank">http://tinyurl.com/proLogback</a><div><div class="h5"><br>
<br>
<br>
On 16.08.2012 14:21, Patrick Hogarty wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
When using the SMTPAppender as such:<br>
<br>
<appender name="EMAIL" class="ch.qos.logback.classic.<u></u>net.SMTPAppender"><br>
         <smtpHost>1.1.1.1</smtpHost><br>
         <to>blah@blah</to><br>
         <from>blah@blah</from><br>
         <subject>TESTING: %logger{36} - %m</subject><br>
<br>
          <layout class="ch.qos.logback.classic.<u></u>PatternLayout"><br>
                 <pattern>%d{yyyyMMddHHmm:ss} %level [%thread]<br>
%logger{36} [%file:%line] %msg%n</pattern><br>
          </layout><br>
</appender><br>
<br>
The resulting log prints out like so:<br>
<br>
201208161255:43 DEBUG [main] LoggingStuff.Foo [?:?] Did it again!<br>
201208161255:43 INFO [main] LoggingStuff.Foo [?:?] Ha info - do it<br>
201208161255:43 WARN [main] LoggingStuff.Foo [?:?] Something is about to<br>
happen!<br>
201208161255:43 ERROR [main] LoggingStuff.Foo [?:?] Serious stuff - is it?<br>
java.lang.Exception: Yep<br>
at LoggingStuff.Foo.doIt(Foo.<u></u>java:56) [classes/:na]<br>
at LoggingStuff.MyApp1.main(<u></u>MyApp1.java:39) [classes/:na]<br>
<br>
Where the %file and %line parameters are not set and show up as a '?'.<br>
<br>
Using the ConsoleAppender and the FileAppender with the same pattern the<br>
parameters all get set correctly, as such:<br>
<br>
201208161247:54 DEBUG [main] LoggingStuff.Foo [Foo.java:53] Did it again!<br>
201208161247:54 INFO [main] LoggingStuff.Foo [Foo.java:54] Ha info - do it<br>
201208161247:54 WARN [main] LoggingStuff.Foo [Foo.java:55] Something is<br>
about to happen!<br>
201208161247:54 ERROR [main] LoggingStuff.Foo [Foo.java:56] Serious<br>
stuff - is it?<br>
java.lang.Exception: Yep<br>
     at LoggingStuff.Foo.doIt(Foo.<u></u>java:56) [classes/:na]<br>
     at LoggingStuff.MyApp1.main(<u></u>MyApp1.java:39) [classes/:na]<br>
<br>
The one thing I have noticed, when looking at the sample code, is that<br>
for both the File and Console appenders, the <pattern> tag is wrapped by<br>
an <encoder> tag. Where as with the SMTP appender, the <pattern> tag is<br>
wrapped by a <layout> tag.<br>
Is there a way of forcing the SMTP appender to set these parameters?<br>
<br>
Thank you<br>
<br>
Patrick<br>
<br>
</blockquote>
<br>
<br></div></div>
______________________________<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>