Where is the data from the Trace.TraceInformation log when running the azure worker in the emulator?

I created a working windows azure role. I used the default templates and the default app.config file for the working role.

<add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="AzureDiagnostics"> </add> 

The worker role uses Trace.TraceInformation to register messages.

In which file is the information recorded?

+6
source share
3 answers

Diagnostic data collected by your roles is stored in the Windows Azure Storage and Blob Containers tables. Assuming that you have configured the diagnostics correctly, you should see a table named WADLogsTable in the vault account specified in the Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString config in your cscfg role cscfg . Here you will see the data. You may find this link useful for configuring diagnostics for your working role: http://msdn.microsoft.com/en-us/library/windowsazure/gg433048.aspx .

+8
source

If you see only your TraceError messages, but not your TraceInformation , then you should change the role diagnostic settings in your cloud project.

  • Go to the cloud project, select the role and properties of interest.
  • Go to the "Configuration" tab and click "Configure"

There you should see the "General" tab in the "Select a diagnostic configuration" section.

Here you must select the All Details radio button to see TraceInformation .

+5
source

With the addition of the above step, select the vault account on the Configuration tab so that it is automatically added to the settings tab in Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString

0
source

Source: https://habr.com/ru/post/950447/


All Articles