A day with .Net

My day to day experince in .net

Windows Azure Diagnostic Infrastructure Logs

Posted by vivekcek on April 11, 2012

Diagnostic Infrastructure Logs are collected by default.We can perform a scheduled transfer of this log into azure storage using the below code.

 public override bool OnStart()
            var config = DiagnosticMonitor.GetDefaultInitialConfiguration();
            config.DiagnosticInfrastructureLogs.ScheduledTransferPeriod = TimeSpan.FromMinutes(1.0);
            config.DiagnosticInfrastructureLogs.BufferQuotaInMB = 200;
            return base.OnStart();

In the code initially we take the default configuration and change it via code.Diagnostic Infrastructure Logs are normally stored in azure table named “WADDiagnosticInfrastructureLogsTable”


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s