这是一个类似于Azure Web App Trace logs not appearing in log的帖子,然而最初的海报似乎没有解决/接受一个答案就放弃了这个问题。
我正在试图追踪一个只发生在Azure web应用程序(现在称为app服务)上的问题。由于公司的策略,我无法执行任何远程调试,因此跟踪是我们最好的工具。
然而,我尝试了各种教程,但我似乎仍然无法获得我的任何跟踪信息记录。
我试过:
- the FTP server at /LogFiles/Application
- the KUDU interface at [https://.scm.azurewebsites.net](https://.scm.azurewebsites.net/) and again, navigated to /LogFiles/Application
- portal's Monitoring > Live stream (the section under Diagnostic Logs for the website)
什么都没有。我甚至等了几个小时(认为这可能是延迟),但仍然什么也没有。
- Trace.TraceError
- Trace.TraceInformation
- Trace.TraceWarning
- Trace.WriteLine
- Console.Out.WriteLine
- Console.Error.WriteLine
- setting my debug=true in my web.config
- setting CustomErrors from RemoteOnly to Off
- trying to use System.Diagnostics.TextWriterTraceListener
有人想让我试试吗?
发布于 2017-11-27 12:05:04
在您的实际web应用程序中的异常报告由应用程序洞察。您可以将失败的请求与客户端和服务器上的异常和其他事件关联起来,以便快速诊断原因。您可以参考本文:https://learn.microsoft.com/en-us/azure/application-insights/app-insights-asp-net-exceptions。
如果在您的NLog应用程序中使用log4Net或System.Diagnostics.Trace进行诊断跟踪,您可以将日志发送到Azure application Insight,在那里您可以探索和搜索它们。您的日志将与来自应用程序的其他遥测信息合并,以便您能够识别与服务每个用户请求相关的跟踪,并将它们与其他事件和异常报告相关联。您可以参考本文:https://learn.microsoft.com/en-us/azure/application-insights/app-insights-asp-net-trace-logs。
https://stackoverflow.com/questions/47506756
复制相似问题