Reload configuration for configuration file on fly

Nov 8, 2010 at 8:31 PM

I am looking at using SLF and log4net as the logging framework on one of my projects. I am setting up the SLF and log4net configuration in my app,config file and everything loads and logs as excepted. However one of my requirements is to be able to change the log4net properties from my application and have the logger to use the new settings without reloading the application. In the past I have used the log4net xmlconfiguration configandwatch() method.

Is there a way to handle this through the SLF framework.

Nov 10, 2010 at 9:23 PM

You might also consider using Common.Logging.  It supports (via the config file) telling log4net to configure and watch.  It also supports putting the log4net configuration in the app.config file OR in a separate config file.