Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# Constructor 4/6/2009 6:50 PM
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?
# martijnb 4/7/2009 8:19 AM
This is the trunk version, right?

You should be able to disable logging in /Config/logging.config. The section in web.config is obsolete.
# Constructor 4/7/2009 12:24 PM
martijnbThis is the trunk version, right?

You should be able to disable logging in /Config/logging.config. The section in web.config is obsolete.

Yes, I should have been more specific.