How can I view console or trace output in an azure app service?

Parkinson, Edward (DIS) 1 Reputation point
2021-09-06T07:19:45.21+00:00

Basic debug logging

How to do debug logging in azure. I want basic logging. Logging to pin down server side bugs such as the cause of a time out.

I tried this - but it did not work:
Solution by benjamingranados https://stackoverflow.com/questions/60696690/how-can-i-view-console-or-trace-output-in-an-azure-app-service-console-writelin

I can see get/post requests with the above solution, IIS messages I am guessing. But no logs.

3 of us have put over 8 hours into this and still no solution. Logs are something widely used, I would expect it to be a 5 min thing. Logs with google was super easy, but not with azure.

Developer technologies | .NET | .NET Runtime
{count} votes

1 answer

Sort by: Most helpful
  1. Sreeju Nair 12,666 Reputation points
    2021-09-07T11:54:08.923+00:00

    You need to enable diagnostics logging for apps in Azure App Service.

    Refer: https://learn.microsoft.com/en-us/azure/app-service/troubleshoot-diagnostic-logs

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.