Re: Global exception handling prevents logging

2008-12-19 Thread Marsman
this message in context: http://www.nabble.com/Global-exception-handling-prevents-logging-tp21050585p21093981.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr

Re: Global exception handling prevents logging

2008-12-19 Thread Marsman
this message in context: http://www.nabble.com/Global-exception-handling-prevents-logging-tp21050585p21093995.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org

Re: Global exception handling prevents logging

2008-12-18 Thread Paul Benedict
/Global-exception-handling-prevents-logging-tp21050585p21050585.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user

Global exception handling prevents logging

2008-12-17 Thread Marsman
even. How can I get both, the error page and a logfile entry? Thanks, Titus -- View this message in context: http://www.nabble.com/Global-exception-handling-prevents-logging-tp21050585p21050585.html Sent from the Struts - User mailing list archive at Nabble.com

Re: Exception Handling and Logging

2007-10-12 Thread Richard Sayre
Hi Paul, I know its been a while but I am now trying to log my exceptions. Previously I was redirecting to a JSP and outputting the error. A requirement has come up where the client does not want the user seeing any stack traces etc. So I want to log the exception in the action and then

Re: Exception Handling and Logging

2007-08-06 Thread Richard Sayre
I set up my application to throw the Exceptions back and I am using Exception mapping to redirect the user to an error page. The error page displays the exception and stack trace. How do I log this to a file instead? Do I open a file stream on the JSP page or is there a better way to log this

Re: Exception Handling and Logging

2007-08-06 Thread Dave Newton
--- Richard Sayre [EMAIL PROTECTED] wrote: Do I open a file stream on the JSP page or is there a better way to log this information? Use commons-logging and / or Log4J? d. Need a vacation? Get great

Re: Exception Handling and Logging

2007-08-06 Thread Richard Sayre
In my interceptor stack i added this parameter: interceptor-ref name=exception param name=logEnabledtrue/param /interceptor-ref I assume it is using either commons logging or log4j but I'm not sure where the log file is or how to manipulate what information goes into the log

Re: Exception Handling and Logging

2007-08-01 Thread Paul Benedict
My applications do not catch any errors. I let them bubble out of the Action and into an ExceptionHandler object for logging. You can log whatever you want -- including the user -- in the handler. Paul Richard Sayre wrote: After reading the Mail Reader walk through, it would seem the best

Exception Handling and Logging

2007-07-29 Thread Richard Sayre
After reading the Mail Reader walk through, it would seem the best practice for handling exceptions is throwing them back to your Action and having a result mapped to handle each specific exception. Is this the best way to do this? If I use this method how can I log the stack of each exception