logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas" <...@tomwindows.com>
Subject RE: Configurable configuration file location
Date Fri, 02 Sep 2005 23:22:12 GMT
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.









From: Michael S. Collier [mailto:michael.collier@centricconsulting.com] 
Sent: Friday, September 02, 2005 4:00 PM
To: 'Log4NET User'
Subject: Configurable configuration file location


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.





View raw message