Log4Net config in external file does not work

前端 未结 13 2098
清歌不尽
清歌不尽 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 21:08

    Watch out for this issue...

    In my case everything was configured correctly. The problem is that I used Web Deploy inside Visual Studio 2013 to upload the site to WinHost.com and it reset the ACLs on the server. This in turn revoked all permission on folders and files - log4net could not write the file.

    You can read more about it here:

    How to stop Web Deploy/MSBuild from messing up server permissions

    I asked the support team there to reset the ACLs and then log4net started spitting logs. :)

提交回复
热议问题