Is there any way to stop specific exception messages that are thrown during page execution from hitting the logs?
My JSPs commonly throw a SecurityException when the user visits a deep link and is not yet logged in. This is handled nicely by a custom error page that recognizes the specific error. However, it still results in an exception in the logs. Unfortunately this case is common enough that it floods my logs with garbage and makes the real problems hard to find.
Is there a way to say that some (or even all) exceptions thrown while executing JSPs should not log stacktraces? Disabling all log output from org.apache.catalina.core.ContainerBase seems far too heavy-handed.