I have the below code :
public void LoggingAI(Exception ex)
{
var log = log4net.LogManager.GetLogger((System.Reflection.MethodBase.GetCurrentMethod().DeclaringType));
XmlConfigurator.Configure();
if (log.IsInfoEnabled)
{
log.Error(ex);
}
}
I have this below code in place in web.config
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
</configSections>
<log4net>
<root>
<level value="Info"/>
</root>
</log4net>
I don't understand why all the properties, log.IsInfoEnabled, log.IsErrorEnabled, etc. are all false.
Am I missing something here?

