I would like an appender to log everything bar 2 levels
eg: I don't want to log ERROR and INFO level logs.

What would the config look like for this?

I've tried adding the following filters to the appender:
<filter type="log4net.Filter.LevelMatchFilter">
        <levelToMatch value="ERROR" />
        <acceptOnMatch value="false" />
</filter> 
<filter type="log4net.Filter.LevelMatchFilter">
        <levelToMatch value="INFO" />
        <acceptOnMatch value="false" />
</filter> 

but this only rejects ERROR.

Any suggestions welcome...
(Apologies - I've posted this same question in "Please verify my config file")

Jax

Reply via email to