Wednesday, September 5, 2012

Configure log4net to read config from web.config


// Tell log4net to watch the following file for modifications:

[assembly: log4net.Config.XmlConfigurator(ConfigFile = "Web.config", Watch = true)]


For App.Config:
[assembly: log4net.Config.XmlConfigurator(Watch = true)]
Add above code inside AssemblyInfo.cs!!