Nov 11, 2009 at 1:20 PM
Edited Nov 11, 2009 at 1:40 PM
MyConfig.config: (<categorySources> Section)
<add switchValue="All" name="cat1">
<add name="Listener1" />
//C# .net Code block Starts
LogWriterFactory factory =null;
LogWriter writer = null;
prtlConfigSrc = new FileConfigurationSource("MyConf.config");
factory = new LogWriterFactory(prtlConfigSrc);
writer = factory.Create();
//C# .net Code block Ends
I have created the LogWriter Object by using the code above ..
I want to modify the categorySource "cat1" switchValue in MyConf.Config when the application is in use.
I want to watch and reload the config file between some interval of time. Is it possible?
Thanks in advance!