I am want to filter out messages that contain specified string. I used log4net.Filter.StringMatchFilter but that applies to appenders only.
I'd like to filter that message on Logger level already. Something along these lines:
<logger name="MyLogger.WebServices">
 <level value="Debug" />
 <filter type="log4net.Filter.StringMatchFilter">
  <stringToMatch value="do not log me" />
  <acceptOnMatch value="false" />
 </filter>
 <appender-ref ref="file" />
 <appender-ref ref="debug" />
</logger>
Is it actually possible this way? Or is there a different way to handle this situation.