Track System.Diagnostics.Trace logs in Azure portal

人盡茶涼 提交于 2020-01-04 05:35:12

问题


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


回答1:


You first need to activate the Application Logging:

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

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



来源:https://stackoverflow.com/questions/47038390/track-system-diagnostics-trace-logs-in-azure-portal

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!