Re: uncaught exception with log4j2

2016-05-04 Thread v yang
this? I really do not want to add a catch to > > anything at all. > > > > vpyang > > > > ________ > > From: Ralph Goers > > Sent: Tuesday, May 3, 2016 11:54 AM > > To: Log4J Users List > > Subject: Re: uncaught exception wi

Re: uncaught exception with log4j2

2016-05-03 Thread Matt Sicker
? I really do not want to add a catch to > > anything at all. > > > > vpyang > > > > ____ > > From: Ralph Goers > > Sent: Tuesday, May 3, 2016 11:54 AM > > To: Log4J Users List > > Subject: Re: uncaught exception with log4j2 > > > > A

Re: uncaught exception with log4j2

2016-05-03 Thread Paul Benedict
anything at all. > > vpyang > > > From: Ralph Goers > Sent: Tuesday, May 3, 2016 11:54 AM > To: Log4J Users List > Subject: Re: uncaught exception with log4j2 > > All you need is to catch the exceptions by doing: > > try { > }

Re: uncaught exception with log4j2

2016-05-03 Thread v yang
Is there no alternative to this? I really do not want to add a catch to anything at all. vpyang From: Ralph Goers Sent: Tuesday, May 3, 2016 11:54 AM To: Log4J Users List Subject: Re: uncaught exception with log4j2 All you need is to catch the

Re: uncaught exception with log4j2

2016-05-03 Thread Ralph Goers
All you need is to catch the exceptions by doing: try { } catch (Exception ex) { logger.error(“Uncaught exception:”, ex); } You would put this in your servlet, Controller or whatever the first thing in your application is that gets control from Tomcat. If you want to treat them speciall