Have log4net use application config file for configuration data

前端 未结 5 1153
北恋
北恋 2020-12-23 19:34

I would like to store log4net config data in my application.config file. Based on my understanding of the documentation, I did the following:

  1. Add a referenc

5条回答
  •  温柔的废话
    2020-12-23 19:56

    I fully support @Charles Bretana's answer. However, if it's not working, please make sure that there is only one

    element AND that configSections is the first child of the root element:

    configsections must be the first element in your app.Config after configuration:

    
    
      
        

提交回复
热议问题