log4net - configure using multiple configuration files
Posted
by Gai
on Stack Overflow
See other posts from Stack Overflow
or by Gai
Published on 2010-05-05T17:24:55Z
Indexed on
2010/05/05
17:28 UTC
Read the original article
Hit count: 286
log4netconfiguration
Hi,
I have an application consisting of a host and pluggable modules (plugins).
I want to be able to configure log4net for the host and for each of the other modules. Each of them should have its own configuration file and each will log to a different file.
Only the host has an App.config file. The plugins have their own config file containing the log4net config sections.
Calling XmlConfigurator.Configure from one of the plugins overrides the host's app.config log4net definitions.
Is there an easy way to append configurations instead of overriding them?
Thanks, Gai.
© Stack Overflow or respective owner