This is a similar post to Azure Web App Trace logs not appearing in log, however the original poster seems to have abandoned the question without resolving/accepting an answer.
I am trying to trace an issue that only happens on the Azure web app (now called app service). I'm unable to perform any remote debugging due to our company policies, so tracing is our best tool.
However, I've tried following various tutorials, but I still can't seem to get any of my trace information logged.
I've tried:
Setting the Application Logging (Filesystem) Level to Verbose, Information, Error -- nothing.
Looking for the logs in
- the FTP server at /LogFiles/Application
- the KUDU interface at https://.scm.azurewebsites.net and again, navigated to /LogFiles/Application
- portal's Monitoring > Live stream (the section under Diagnostic Logs for the website)
Nada. I've even waited a few hours (thinking it might be a delay), and still nothing.
I setup a very basic hello world ASPX and all it does (in the Page_Load) is try to write 'hello' to the trace log using
- Trace.TraceError
- Trace.TraceInformation
- Trace.TraceWarning
- Trace.WriteLine
- Console.Out.WriteLine
- Console.Error.WriteLine
Some weird stuff I've also tried
- setting my debug=true in my web.config
- setting CustomErrors from RemoteOnly to Off
- trying to use System.Diagnostics.TextWriterTraceListener
Anyone have any ideas I might try?