title: log4j2.xml - How to exclude category
body: <p>I have two AsyncLoggers inside my log4j2.xml file. They both have the same prefix of esb.api-vehicle-registration-v1.</p>
  
  <pre><code>    &lt;!-- API specific Groovy files --&gt;
      &lt;AsyncLogger name="esb.api-vehicle-registration-v1.get-registration.web-service-response-validate.groovy" level="OFF"/&gt;
  
      &lt;!-- API specific log messages --&gt;
      &lt;AsyncLogger name="esb.api-vehicle-registration-v1" level="DEBUG"/&gt;
  </code></pre>
  
  <p>Is it possible to change the first AsyncLogger definition to use a wildcard like so...</p>
  
  <pre><code>    &lt;AsyncLogger name="esb.api-vehicle-registration-v1.get-registration.*.groovy" level="OFF"/&gt;
  </code></pre>
  
  <p>I'm asking because I have log output from a number of *groovy categories I would like to exclude.</p>
  
  <p>I did try it but it didn't seem to work.</p>