In log4X there are filters that can be applied to appenders in order to filter messages; here is a list of the filters
- log4net.Filter.LevelMatchFilter Filters log events that match a specific logging level; alternatively this can be configured to filter events that DO NOT match a specific logging level.
- log4net.Filter.LevelRangeFilter Similar to the LevelMatchFilter, except that instead of filtering a single log level, this filters on an inclusive range of contiguous levels.
- log4net.Filter.LoggerMatchFilter Filters log events based on the name of the logger object from which they are emitted.
- log4net.Filter.StringMatchFilter Filters log events based on a string or regular expression match against the log message.
- log4net.Filter.PropertyFilter Filters log events based on a value or regular expression match against a specific context property.
- log4net.Filter.DenyAllFilter Effectively drops all logging events for the appender.
In your case you would need to filter your three appenders in order to exclude the INFO
level: a LevelMatchFilter refusing INFO
level logs would work:
<filter type="log4net.Filter.LevelMatchFilter">
<acceptOnMatch value="false" />
<levelToMatch value="INFO" />
</filter>