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 BhoirPosted Jul 13, 2015, 1:08 AM
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 MohapatraPosted Jul 13, 2015, 2:08 AM