Poul K. Sørensen
Poul K. Sørensen

Reputation: 17530

DiagnosticMonitorTraceListener in Azure Websites

I have been using Azure Cloud Services the past year and is used to reading my trace logs with Azure Management Studio, with logs being stored in table storage using DiagnosticMonitorTraceListener.

I am confused about starting using azure websites as it seems they are using a diffrent logging structure? Is it not possible to see the trace logs from azure website using azure management studio in the Diagnostic/Trace like i used to with Cloud Services

Upvotes: 0

Views: 391

Answers (2)

Amit Apple
Amit Apple

Reputation: 9182

The diagnostics viewer tool for cloud services will not work for Azure Websites, but there is a tool for viewing your Azure Website logs called Azure Website Log Browser. It is installed as a site extensions on your Azure Website.

You can read more about it here.

Upvotes: 0

Aravind
Aravind

Reputation: 4163

Diagnostics in azure websites is similar to any web application. DiagnosticsMonitor applies to webroles. In the case of websites, diagnostics need to have a persistent storage and it can be configured in azure management portal. Check out these posts.

http://azure.microsoft.com/en-us/documentation/articles/cloud-services-dotnet-diagnostics/ http://blogs.msdn.com/b/microsoft_press/archive/2014/01/29/from-the-mvps-diagnostics-and-logging-in-windows-azure-web-sites.aspx http://www.hanselman.com/blog/StreamingDiagnosticsTraceLoggingFromTheAzureCommandLinePlusGlimpse.aspx

The logs can be downloaded and analysed locally. I am not sure if the tool that supported webroles works for this too.

Upvotes: 1

Related Questions