Is it possible to easily modify the log4net section in the config file of several running applications remotely? -


our product consists of client, server , agents. each deployed on different machines. qa having hard time manipulate log4net sections in respective config files. right now, have have remote desktops relevant machines , open notepad in each of them , edit files 1 @ time switching between different machines proceed. real pain in ass.

can suggest better solution problem?

thanks.

you store log4net configuration in database (you consider create web interface allows qa team modify configuration). have figure out how applications pick new configuration (e.g. have remote admin interface allows tell applications use new configuration).

on start-up load configuration there. maybe advisable have backup configuration in file loaded first in case loading database fails. default configuration instance qa team gets email if loading configuration database fails.

another option store log4net configuration files on network share... create application setting tells application find log4net configuration , call configure() method accordingly. again question how applications pick new configuration.

not sure if configureandwatch() behave expected if configuration files on network share. if quite easy option implement.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -