To my project I have added Log4Net dll as a reference.
In a code I have DEBUG, INFO and ERROR logging.
In the app.config I have set level value = "All"
So it displays all logs.
Is there any way to configure logs that I would like to display in the a log file.
For example
1. DEBUG and INFO
2. INFO and ERROR
3. ERROR and DEBUG
Thanks

Manoj BhoirRank #599 · 4K reputationPosted Jul 12, 2015, 9:08 PM EDT
A level range filter tells the system to only log entries that are inside of the range specified. This range is inclusive, so in the below example, events with a level of INFO, WARN, ERROR, or FATAL will be logged, but DEBUG events will be ignored. You do not need the deny all filter after this entry since the deny is implied.
Manas MohapatraRank #182 · 13.2K reputationPosted Jul 12, 2015, 10:08 PM EDT