Hey guys,<div><br></div><div>I have a Jetty application that I configured with Logback.  I am trying to set it up so any errors that occur during execution are emailed to me.  I am a bit of a noobie, and so far I haven&#39;t had any luck with this.  I can only get exceptions emailed to me if I explicitly set a try/catch block in my code everywhere and call logger.error(...).  Is there an easy way to cause all exceptions to be logged and emailed to me via my SMTPAppender?</div>

<div><br></div><div>Here is the config I have attempted to use so far:</div><div><br></div><div><br></div><div><div>&lt;configuration debug=&quot;true&quot;&gt;</div><div>  &lt;appender name=&quot;EMAIL&quot; class=&quot;ch.qos.logback.classic.net.SMTPAppender&quot;&gt;</div>
<div>    &lt;SMTPHost&gt;<a href="http://smtp.gmail.com">smtp.gmail.com</a>&lt;/SMTPHost&gt;</div><div>    &lt;SMTPPort&gt;465&lt;/SMTPPort&gt;</div><div>    &lt;SSL&gt;true&lt;/SSL&gt;</div><div>    &lt;Username&gt;myemail&lt;/Username&gt;</div>
<div>    &lt;Password&gt;my password&lt;/Password&gt;</div><div>    &lt;To&gt; myemail&lt;/To&gt;</div><div>    &lt;From&gt; myemail&lt;/From&gt;</div><div>    &lt;Subject&gt;TESTING: %logger{20} - %m&lt;/Subject&gt;</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>&lt;layout class=&quot;ch.qos.logback.classic.html.HTMLLayout&quot;/&gt;</div><div>  &lt;/appender&gt;</div><div><br></div><div>  &lt;root level=&quot;debug&quot;&gt;</div>
<div>    &lt;appender-ref ref=&quot;EMAIL&quot; /&gt;</div><div>  &lt;/root&gt;  </div><div>  </div><div>  &lt;logger name=&quot;exception&quot; level=&quot;ERROR&quot;&gt;</div><div>    &lt;appender-ref ref=&quot;EMAIL&quot;&gt;&lt;/appender-ref&gt;</div>
<div>  &lt;/logger&gt;</div><div>  </div><div>  &lt;logger name=&quot;org.mortbay&quot; level=&quot;error&quot;&gt;</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>&lt;appender-ref name=&quot;EMAIL&quot;&gt;</div>
<div>  &lt;/appender-ref&gt;&lt;/logger&gt;</div><div>  </div><div>  &lt;logger name=&quot;developerworks.jetty6&quot; level=&quot;error&quot;&gt;</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>&lt;appender-ref name=&quot;EMAIL&quot;&gt;</div>
<div>  &lt;/appender-ref&gt;&lt;/logger&gt;</div><div>  </div><div>  &lt;logger name=&quot;jupiter.filters&quot; level=&quot;error&quot;&gt;</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>&lt;appender-ref name=&quot;EMAIL&quot;&gt;</div>
<div>  &lt;/appender-ref&gt;&lt;/logger&gt;</div><div>  </div><div>  &lt;logger name=&quot;jupiter.messaging&quot; level=&quot;error&quot;&gt;</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>&lt;appender-ref name=&quot;EMAIL&quot;&gt;</div>
<div>  &lt;/appender-ref&gt;&lt;/logger&gt;</div><div>&lt;/configuration&gt;</div><div><br></div><div>Thanks,</div><div>Brian</div></div>