Discarding several log levels within a range with log4net
Posted
by Harel Moshe
on Stack Overflow
See other posts from Stack Overflow
or by Harel Moshe
Published on 2010-05-14T05:50:44Z
Indexed on
2010/05/14
5:54 UTC
Read the original article
Hit count: 249
log4net
Hey,
Say i set my log4net logger's minLevel and maxLevel to FATAL and DEBUG respectively, but under some scenario i want to mute the log-items written in the WARN level, and keep all the other levels in the range active.
Is it possible to somehow use 'discrete' levels of log-levels rather than specifying a range using minLevel and maxLevel?
I assume this should be simple, but i haven't found any log4net docs or examples dealing with this issue.
Regards, Harel
© Stack Overflow or respective owner