title: log4net filter - how to write AND filter to ignore log messages
body: <p>I am struggling to write an AND conditional filter in log4net. Had it been nLog, I could have written it this way:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;logger name="*" minlevel="Info" xsi:type="NLogLoggerRule" writeTo="FooLogger" &gt;
    &lt;filters&gt;
      &lt;when condition="equals('${event-context:item=UserID}', 'TESTUSER') 
                   and equals('${event-context:item=URL}','/foo/foobar.aspx')" 
            action="Ignore" /&gt;
    &lt;/filters&gt;
  &lt;/logger&gt;
  </code></pre>
  
  <p>I am not sure how to write the same filter in log4net. I have been so far successful, in writing a single condition:</p>
  
   <pre class="lang-xml prettyprint-override"><code>&lt;appender&gt;
     ....
     &lt;filter type="log4net.Filter.PropertyFilter"&gt;
        &lt;key value="URL" /&gt;
        &lt;stringToMatch value="/foo/foobar.aspx" /&gt;
        &lt;acceptOnMatch value="false" /&gt;
     &lt;/filter&gt;
  &lt;/appender&gt;
  </code></pre>
  
  <p>How can I write AND conditions using log4net filters? Please help.</p>