#
Constructor
I have tried to stop the creation of log files in the log directory of the web root by commenting:
(!--(section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net"/)--)
The log files still get created.
I have removed by comment this line from Global.cs:
//XmlConfigurator.ConfigureAndWatch(new FileInfo(Server.MapPath("~/") + "config/logging.config"));
This seemed to do the trick.
Simple question. Is this the preferred method for stopping log file generation?
(!--(section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net"/)--)
The log files still get created.
I have removed by comment this line from Global.cs:
//XmlConfigurator.ConfigureAndWatch(new FileInfo(Server.MapPath("~/") + "config/logging.config"));
This seemed to do the trick.
Simple question. Is this the preferred method for stopping log file generation?