Log4Net config in external file does not work

前端 未结 13 2097
清歌不尽
清歌不尽 2020-11-30 20:27

We are using log4net and want to specify it\'s configuration in an external config file (as we have done with other sections). To do this we have changed the log4net section

13条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-30 20:59

    It is also possible to turn on a Debug mode for log4net. Insert this into the App.config file:

     
          
     
     
          
          
               
          
          
     
    

    and you will at least get error messages, from which you can derive what exactly went wrong. In my case I simply forgot to set Copy to output directory to Copy Always.

提交回复
热议问题