I just came across the two sections in log4net configiurations:
<logger name="File">
<level value="All" />
</logger>
<root>
<level value="INFO" />
</root>
May I know what is the difference of specifying levels at logger and root tags? What is the difference between them?
rootmeans all logs in the application, andloggerallows to refer to a certain kind of log. Using them you can change the log configuration only for cetain logs. Look your sample with comments:In this sample all logs are to INFO, and the the log of the type “File” (or named File) is WARN.