Here's a way that works for me, the only caveat is that you have to use
a log4j.xml file instead of a log4j.properties.
Just add the following inside your appender declaration:
<filter class="org.apache.log4j.varia.StringMatchFilter">
<param name="StringToMatch" value="Access is denied"/>
<param name="AcceptOnMatch" value="false"/>
</filter>
no more annoying AccessDenied exception filling up the logs.
Ulrich Stärk wrote:
Yet another tapestry-spring-security question: How do I turn of the
logging of the AccessDeniedExceptions thrown (and apparently catched) in
BeginRender when a user tries to access a page he isn't allowed to? The
user gets redirected to the loginpage (funnily not to the page specified
by spring-security.accessDenied.url) but the exception is still being
logged, polluting my logs.
TIA,
Uli
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]