Where can I find docker container logs for Azure App Service

后端 未结 5 2305
没有蜡笔的小新
没有蜡笔的小新 2021-02-20 10:40

I do have a Docker container running a .net core 2 app.

The logging is configured using this code in Program.cs

public static IWebHostBuilde         


        
5条回答
  •  渐次进展
    2021-02-20 11:08

    I've been cursing this for a good while, and eventually found something that works for me.

    First I enabled filesystem logging as per @dima_horror's answer.

    Next I ran a command-line az webapp log tail --name myApp --resource-group myRg

    That now seems to give me useful output (it gave me nothing prior to enabling filesystem logging).

提交回复
热议问题