Azure Diagnostics - WADLogs table not created

I am trying to log information whenever a user performs some operations in WebRole in the cloud. In the emulator, it will write the information in the output window, but in the azue portal, I cannot see the information anywhere. I have enabled azure diagnostics and provided credentials in azure storage, but the Azure WADLogs table is not being created. This is how I am logging "Trace.TraceInformation (" Policy started ");". Also used by TraceSource to log information, but no luck.

Note: Iam using Azure SDk2.5

Please kindly advise me to proceed further.

Thank you, Suria.

+3


source to share


2 answers


Check if the tracer is configured correctly in your web.config or app.config. It should have something like this -

<system.diagnostics>
<trace>
  <listeners>
    <add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener,   Microsoft.WindowsAzure.Diagnostics, Version=2.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
      name="AzureDiagnostics">
      <filter type="" />
    </add>
  </listeners>
</trace>

      



Check your wadcfgx file to make sure it has the correct storage account file in the item. Also check if log transfer is enabled in wadcfgx with the appropriate transfer / transfer filter.

+1


source


From the Azure SDK 2.5 Release Notes - "Diagnostic logs are not collected in the Azure Compute Emulator. For projects targeting the Azure SDK version 2.5, the Azure Compute Emulator no longer supports collecting diagnostic logs, including performance counters, infrastructure logs, IIS logs, and event logs Also, the logs are no longer stored in storage or Azure storage. You can continue to view application logs in the Visual Studio output window or in the compute emulator. This only applies to projects targeting Azure SDK 2.5, projects that continue targeting the Azure SDK. 2.4 are not affected. "



So, if you are using a local application, you will not be able to see the logs or table. But if you publish your application to Azure, you can view your logs by going to Server Explorer and looking under StorageAccount where you configured diagnostic output. Or you can right-click the cloud service instance in Server Explorer and select View Diagnostic Data. This will open a page with a summary of your diagnostic data. These logs are not displayed in the Azure portal, but you can view them as described above through the Visual Studio Server Explorer.

+1


source







All Articles