I am using log4net to log an application that has multiple clients.
Each client by default is using a single  configuration file.  I am
trying to change the configuration file that a particular client is
using at runtime.  This is so I can set the logging level to a low level
without affecting the runtime performance of the other clients and to
prevent someone from accidentally turning logging off for the other
clients.  I am able to do this using the ConfigureAndWatch method but I
can't stop log4net from watching the original configuration file.  So
whenever either file is modified, log4net is reconfigured.

How can I remove the FileSytemWatcher from the first file so that it
will only watch the second file?

I have looked through the log4net code and it appears that the
FileSystemWatcher is created but is not referenced in any classes so I
can not Disable to Dispose it.

I am using version 1.2.0.30716 of log4net.

Thanks,
Nick

Reply via email to