The log4net uses different logging levels, ALL, DEBUG, INFO, WARN, ERROR and FATAL.
What I wanted to have is to log debugging, information and warnings into an appender and errors and fatal errors to another appender.
Here's how to define two appenders for different levels:
Note that there are two appenders with different filters, the former raning from DEBUG to WARN and the latter ranging from ERROR to FATAL.
The simple helper class I've found somewhere and use to simplify the logging:
To test different levels defined for these two appenders just call:
Note that logs with different levels are correctly directed to appropriate appenders.