Ron, Thanks for the URL tip, I'm actually trying to figure out the best way to implement it. I've been using the assembly call,
[assembly: log4net.Config.XmlConfigurator(ConfigFileExtension="logging.xml", Watch=true)] to configure logging so far in my web apps. The only problem is it doesn't seem to accept a URL. According to the context help I can only use ConfigFile, ConfigFileExtension and Watch. If I call XmlConfigurator.Configure to pass in a URL, what do you recommend is the best way to implement this? Thanks, Scott -----Original Message----- From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 12:24 AM To: Log4NET User Subject: Re: Logging several IIS apps. There is a Uri overload for the XmlConfigurator.Configure method. You could host the log4net.config file on a webserver somewhere. Or you could write code to extract it from a database during application startup. ----- Original Message ---- From: Scott Glass <[EMAIL PROTECTED]> To: [email protected] Sent: Tuesday, July 24, 2007 12:19:11 PM Subject: Logging several IIS apps. Can anyone give me an example of how we would have one localized configuration script or DB repository to control logging within an IIS Web Server framework? Right now we?re maintaining a logging.xml for each application (virtual directory, alias, etc.) in our system. I?d like to move it all to the wwwroot folder and have one instance, is this possible? I?ve been using the assembly property below to configure each app. Pointing it to logging.xml. [assembly: log4net.Config.XmlConfigurator(ConfigFile = "logging.xml", Watch = true)] But this seems to require that logging.xml be in the root of each application. Thanks, Scott
