title: Weblogic log filters customization
body: <p>There is an exception thrown and logged by the EJB container before I can handle it in my code (catch-block), so I decided to filter it. So, I am trying to create a weblogic log filters like explained <a href="http://javaosdev.blogspot.de/2011/10/weblogic-log-filter-kung-fu.html" rel="nofollow">here</a></p>
  
  <p>Everything works fine as long as my filter looks like this:</p>
  
  <pre><code>NOT(MESSAGE LIKE '%java.sql.SQLIntegrityConstraintViolationException%')
  </code></pre>
  
  <p>But when i try to specify it more, for example which unique constraint I want to filter it is not filtering anything.</p>
  
  <p>For example, I tried both:</p>
  
  <pre><code>NOT(MESSAGE LIKE '%ORA-00001: unique constraint (SOME.UQ_MY_CONSTRAINT violated%')
  </code></pre>
  
  <p>and</p>
  
  <pre><code> NOT(MESSAGE LIKE '%java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (SOME.UQ_MY_CONSTRAINT) violated%')
  </code></pre>
  
  <p>Even when I try to escape the special characters these messages continue to show in the log.</p>
  
  <p>Here is the <a href="http://docs.oracle.com/cd/E13222_01/wls/docs92/wldf_configuring/appendix_query.html#wp1054866" rel="nofollow">Oracle configurational tutorial</a></p>