Take the 2-minute tour ×

I have a worker role that I would like to get diagnoistics feedback on... after adding the appropriate connection string to the ServiceConfiguration.cscfg and the following code:

DiagnosticMonitorConfiguration diagConfig = DiagnosticMonitor.GetDefaultInitialConfiguration();
diagConfig.WindowsEventLog.ScheduledTransferPeriod = System.TimeSpan.FromMinutes(5.0);
diagConfig.Logs.ScheduledTransferPeriod = System.TimeSpan.FromMinutes(5.0);

Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitor.Start("DiagnosticsConnectionString", diagConfig);

When I call "System.Diagnostics.Trace.TraceInformation("test log") I expect to be able to find the record in the WADLogsTable of the target Azure Storage Account. Howver, the table doesn't exist- how is it created? None of the documentation I've read covers this.
Thanks in advance,

share|improve this question

1 Answer 1

up vote 6 down vote accepted

You'll want to set a log level filter, like:

diagConfig.Logs.ScheduledTransferLogLevelFilter = LogLevel.Information;

I have a more detailed answer here.

Note that occasionally, in the simulation environment, the tables don't get created immediately.

share|improve this answer

Your Answer


