Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Track System.Diagnostics.Trace logs in Azure portal

In my web application, I use

System.Diagnostics.Trace.WriteLine(...);

for diagnostics. The application is published to an Azure deployment slot. I am wondering where I can find these logs in the Azure Portal (or Visual Studio's cloud explorer).

like image 453
Eutherpy Avatar asked Oct 31 '17 14:10

Eutherpy


1 Answers

You first need to activate the Application Logging:

  1. Go to your Web App.
  2. Go to Monitoring / App Service logs.
  3. Enable Application Logging and configure it.

Application Logging

This article can also be useful: https://stackify.com/azure-app-service-log-files/

like image 149
gbellmann Avatar answered Nov 14 '22 23:11

gbellmann