Setomidor
10-18-2007, 03:33 AM
Morning
In my web application, I use exceptions and error-pages to deal with for instance when a user tries to POST the same data again (using a randomfield as control number). This works like a charm with one exception: my logs are cluttered with stack traces!
What I want to do is shut of logging for any exception that has a designated error-page configured in web.xml. Exceptions that are displayed to the user with a default tomcat error page should still be logged for future patching.
Can this be done? Even specifying which specific classes that are affected is a durable solutions (they're not more then 5 anyway).
Thanks in advance!
//Seto
In my web application, I use exceptions and error-pages to deal with for instance when a user tries to POST the same data again (using a randomfield as control number). This works like a charm with one exception: my logs are cluttered with stack traces!
What I want to do is shut of logging for any exception that has a designated error-page configured in web.xml. Exceptions that are displayed to the user with a default tomcat error page should still be logged for future patching.
Can this be done? Even specifying which specific classes that are affected is a durable solutions (they're not more then 5 anyway).
Thanks in advance!
//Seto