struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Benedict <pbened...@apache.org>
Subject Re: Exception Handling and Logging
Date Thu, 02 Aug 2007 04:05:44 GMT
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
> 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 that
> was thrown?  I know there is a logging interceptor but I have not
> found any docs on how to use it.  I would like to make an error log of
> everything that happens in the application.  Is it possible to log
> other information with the Exception such as the current user?
>
> Thank you,
>
> Rich
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message