It is possible to change log4net logging level without restart ASP.NET application. Some possible ways to configure log4net configuration are:
- ASP.NET web config file.
- adding separate config file and referring config file inside AssemblyInfo.cs file:
[assembly:log4net.Config.XmlConfigurator(ConfigFile="Log4Net.config",Watch=true)]
Changing the configuration in a web.config file will restart the application. If I don't want to restart the application, is it recommended to use the separate configuration file or is there any different approach for this?