mercredi 18 novembre 2015

Log4Net multiple configurations in single config file

Is there any possibility to create single log4net.config file containing multiple configurations. I would like to create different logs depending on some kind of parameter that will choose proper configuration with appenders from logger config file.

e.g. I have two different projects, in each of them I need to create different logs. By reading the same for both projects config file in assembly.info and giving some kind of parameter i could choose different logger configurations to be used in projects.

I would be grateful for any help with it.

Aucun commentaire:

Enregistrer un commentaire