[logback-user] Exception Handler

Ceki Gulcu ceki at qos.ch
Tue May 12 15:58:57 CEST 2009


Hello Brian,

Could you give an example of code which works and code which does not?

Brian Moschel wrote:
> Hey guys,
> 
> 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'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?
> 

-- 
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch


More information about the Logback-user mailing list