You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Marsman <ma...@gmx.de> on 2008/12/17 11:27:24 UTC
Global exception handling prevents logging
Hi!
As mentioned in my Struts 2 guide, I've coded a general error page for
unexpected errors and included it over the global-message-mapping
configuration. When an exception occurs, the error page will be displayed to
the user. But exceptions are not logged in my logfile anymore. No stack
trace 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.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Global exception handling prevents logging
Posted by Marsman <ma...@gmx.de>.
Paul Benedict-2 wrote:
>
> If you want both, create a logger in your handler and log the
> exception given to you.
>
Which "handler" do you mean? I've configured a global-exception-mapping and
a JSP will be directly shown to the user, if any not handled exception
occurs.
Titus
--
View 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-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Global exception handling prevents logging
Posted by Marsman <ma...@gmx.de>.
Paul Benedict-2 wrote:
>
> If you want both, create a logger in your handler and log the
> exception given to you.
>
Which "handler" do you mean? I've configured a global-exception-mapping and
a JSP will be directly shown to the user, if any not handled exception
occurs.
Titus
--
View 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-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Global exception handling prevents logging
Posted by Paul Benedict <pb...@apache.org>.
If you want both, create a logger in your handler and log the
exception given to you.
On Wed, Dec 17, 2008 at 4:27 AM, Marsman <ma...@gmx.de> wrote:
>
> Hi!
>
> As mentioned in my Struts 2 guide, I've coded a general error page for
> unexpected errors and included it over the global-message-mapping
> configuration. When an exception occurs, the error page will be displayed to
> the user. But exceptions are not logged in my logfile anymore. No stack
> trace 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.
>
>
> ---------------------------------------------------------------------
> 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