简体   繁体   中英

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).

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.

应用程序日志

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM