It's not a secret anymore!
The moose likes Tomcat and the fly likes Redirecting Exceptions Or Exceptions  to our own log files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "Redirecting Exceptions Or Exceptions  to our own log files" Watch "Redirecting Exceptions Or Exceptions  to our own log files" New topic
Author

Redirecting Exceptions Or Exceptions to our own log files

Ramesh Etta
Ranch Hand

Joined: Sep 18, 2007
Posts: 47
hi,

when ever my application raises some exceptions these exceptions are written in logs directory of TOMACAT_HOME. How can i redirect those to my log file, that is the log file created by me.

Please help me.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Have you lookeded into a logging package like log4j?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Redirecting Exceptions Or Exceptions to our own log files
 
It's not a secret anymore!