In-Role Cache in Microsoft Azure Cache applications uses a diagnostic level for diagnostic data collection. This diagnostic level provides a single setting that you can use to configure the level of data collection.
You can obtain Azure In-role cache diagnostics files from the Microsoft Azure Diagnostics (WAD) storage account. For more information about how to enable the collection of In-Role cache diagnostics data, see the following Microsoft Azure website:
If the following functions are not called in the role's OnStart override, In-Role cache diagnostics data will not be transferred to WAD storage.
Note If the In-Role cache diagnostics is not enabled to be transferred to WAD storage, you may be still able to get the In-Role cache diagnostic data from role-based virtual machines by using the PaaS VM Log SDP package.
You can obtain Azure In-role cache diagnostics files from the Microsoft Azure Diagnostics (WAD) storage account. For more information about how to enable the collection of In-Role cache diagnostics data, see the following Microsoft Azure website:
If the following functions are not called in the role's OnStart override, In-Role cache diagnostics data will not be transferred to WAD storage.
public override bool OnStart()
{
DiagnosticMonitorConfiguration dmConfig =
DiagnosticMonitor.GetDefaultInitialConfiguration();
// Configure the collection of cache diagnostic data.
CacheDiagnostics.ConfigureDiagnostics(dmConfig);
DiagnosticMonitor.Start("Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString",
dmConfig);
return base.OnStart();
}