Log4Net filters “OR”
问题 Is it possible to make a filter, for example a PropertyFilter that is neutral (and passed to next filter in the chain) if either one or another value matches? Something like: <filter type="log4net.Filter.PropertyFilter"> <Key value="myProperty" /> <StringsToMatch Operator="OR"> <Match>value1</Match> <Match>value2</Match> </StringsToMatch> </filter> I really don't want to write my own filter and would prefer to accomplish this with the normal Log4Net filters. Is this possible? 回答1: You could