The config file is just a standard XML file. Have you tried using an XmlDocument object to read the file in, make your changes, then write it back to the file system? If you've configured log4net to place a file system watch on the file, when you save the file back out to the hard drive log4net will re-process it and the changes will take affect.
- Ron --- Richard Louapre <[EMAIL PROTECTED]> wrote: > Hi, > > I need to programmatically update the config file (log4net.config) in > order > to keep the changes apply to my log system. > I did not find anything to do that, maybe I have missed something. > > Does anybody have an sample? > > Many Thanks. > > Ciao, > Richard. >
