Azure logging in the 1.7 SDK
azure, logging
Solution
The issue is with your web.config, you need to update the assembly version to 1.7.0.0:
Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=1.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Problem
After upgrading my azure project to the SDK version 1.7, the logs has stopped being transfer to storage. I have been looking at this for a few hours, and can't see what has changed (a diff isn't helping either). I think I need a set of fresh eyes to help location the problem. Do you see anything wrong here? Did the setup change in the 1.7SDK? Web.config ``` <system.diagnostics xdt:Transform="Insert"> <trace> <listeners> <add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="AzureDiagnostics"> <filter type="" /> </add> </listeners> </trace> </system.diagnostics> ``` Service Definition ``` <Imports> <Import moduleName="Diagnostics" /> </Imports> ``` CloudConfig ``` <ConfigurationSettings> <Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" value="DefaultEndpointsProtocol=https;AccountName=[account];AccountKey=[key]" /> </ConfigurationSettings> ``` OnStart ``` var config = DiagnosticMonitor.GetDefaultInitialConfiguration(); //event log config.WindowsEventLog.DataSources.Add("System!*"); config.WindowsEventLog.DataSources.Add("Application!*"); config.WindowsEventLog.ScheduledTransferPeriod = TimeSpan.FromMinutes(5); config.WindowsEventLog.ScheduledTransferLogLevelFilter = LogLevel.Warning; config.Logs.ScheduledTransferPeriod = System.TimeSpan.FromMinutes(5); config.Logs.ScheduledTransferLogLevelFilter = LogLevel.Information; DiagnosticMonitor.Start("Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString", config); return base.OnStart(); ```