Where do logs go when running ASP.NET Core on IIS 7.5?

后端 未结 5 915
野趣味
野趣味 2020-12-09 15:35

I\'m posting this and answering it, because this left me stumped for a very long time. I have the following line in my web.config:



        
5条回答
  •  眼角桃花
    2020-12-09 16:21

    I did the following steps in order to get logs:

    1. Create a folder logs and give write access to IIS_IUSRS as described above
    2. Set absolute path in web.config: stdoutLogFile="C:\xxx\xxx\logs"
    3. Recycle the the application pool
    4. Stop, Start the Website

    Edit

    Step 2 works with relative path too stdoutLogFile=".\logs\stdout"

提交回复
热议问题