I would like to dynamically determine the log4net config filename. I tried 
log4net.helpers.SystemInfo.ConfigurationFileLocation (seen in 
DOMConfigurator.cs) but it gives me the wrong info. It gives me "web.config", 
but I'm using "<assemblyname>.dll.log4net" as the config filename.

I have this code in my Global.asax.cs:
[assembly: log4net.Config.DOMConfigurator(ConfigFileExtension="log4net", 
Watch=true)]

I need to determine the config filename because I'm writing a page to sit on 
the production servers that will allow us to update the config file, should we 
need to change the log level.

Thanks,
Simon.

Reply via email to