Logging from ASP.NET 5 application hosted as Azure Web App
问题 I have an ASP.NET 5 Web API that I host in Azure as a Web App. I want to log messages from my code using Azure Diagnostics. There are multiple article including Azure docs that suggest that it should be as easy as System.Diagnostics.Trace.WriteLine once enabled. The logs should show up under LogsFiles/Application and in log stream in Azure. I enabled application logging for the web app: But the following calls produces no logs: System.Diagnostics.Trace.TraceError("TEST"); System.Diagnostics