How to suppress exceptions which are get thrown in a code and not get logged with help of Logger object?
Issue
- If do not want any specific exception not to be logged then how to avoid it?
- Following filter is also not working for the exception
ERROR [org.jboss.ejb.plugins.SecurityInterceptor] Error in Security Interceptor
java.lang.SecurityException: Authentication exception,
<filter class="org.apache.log4j.varia.StringMatchFilter">
<param name="StringToMatch" value="Error in Security Interceptor
java.lang.SecurityException: Authentication exception" />
<param name="AcceptOnMatch" value="false" />
</filter>
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 5.1.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.