Friday, February 26, 2010

Programmer - Log runtime Exceptions in Java using log4j

Programmer Question

Hi,
I am currently building an application using Tomcat, Spring, JAVA. I am using Log4J as my logging library. I currently am logging everything to a text file. One of the issues I'm having is that RuntimeExceptions are not being logged to any files. I was wondering if there was a way to log all RuntimeExceptions that maybe thrown to my application log file. If not is it possible to have it log to another log file? Is there a standard way to do this? If so is there a standard way to do this when running your application within Tomcat?



Thank you in advance for your help!



Find the answer here

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails