|
I believe this is possible in .NET 2.0 as it allows for the ability to “include” configuration files. To do this in 1.x, would be trickier. You could assemble the configuration file manually, combining the information from the log4net configuration file. Another solution would be to have the log4net assembly look specifically for a log4net configuration file instead of the application’s configuration file.
HTH
Thomas
From: Michael S.
Collier [mailto:[EMAIL PROTECTED]
Is there any way to specify the configuration file log4net should use via a configuration file? For example, let’s say I have three different applications that all want to use the same log4net configuration. Is it possible to set a value in each application’s app.config file that log4net would use as the path to its configuration file? Or, would it be up to each application to read such a configuration setting and programmatically configure log4net?
I haven’t seen anything in the log4net documentation about this, but thought I would ask just in case.
Thanks, Mike |
- Configurable configuration file location Michael S. Collier
- RE: Configurable configuration file location Thomas
- RE: Configurable configuration file location Ron Grabowski
- Re: Configurable configuration file location Ron Grabowski
