Where are the diagnostics/logs storage tables?

前端 未结 3 436
情书的邮戳
情书的邮戳 2021-01-14 04:14

I have a problem deploying a WebRole (WCF service) to Azure. My WebRole keeps showing buzy for at least 30 minutes, until I abort it. I deploy through Visual Studio 2010. I’

3条回答
  •  感情败类
    2021-01-14 05:19

    Have you set up a transfer schedule for the Logs table? That is, all logging gets cached in each instance, and you need to explicitly ask for that data to be persisted in table storage on a periodic basis. Here's a trivial example for WADLogsTable:

            var dm = DiagnosticMonitor.GetDefaultInitialConfiguration();
            dm.Logs.ScheduledTransferPeriod = TimeSpan.FromSeconds(5);
            dm.Logs.ScheduledTransferLogLevelFilter = LogLevel.Verbose;
            DiagnosticMonitor.Start("DiagnosticsConnectionString", dm);
    

    Once this is set up, you should see the WADLogsTable table appear after a while.

    You'll need to set up the transfer period and filter for each of the other types as well:

    • Event log
    • Diagnostics infrastructure log
    • Directories
    • Performance counters

提交回复
热议问题