Gets or sets the filter level for event data that has been logged with level information.
Assembly: Microsoft.WindowsAzure.Diagnostics (in Microsoft.WindowsAzure.Diagnostics.dll)
The following code snippet specifies that only error-level logs should be transferred:
// Specify the on-demand transfer options for the diagnostic data. OnDemandTransferOptions transferOptions = new OnDemandTransferOptions(); // Specify only error-level logs. transferOptions.LogLevelFilter = LogLevel.Error;
This API is not supported in Azure SDK versions 2.5 and higher. Instead, use the diagnostics.wadcfg XML configuration file. For more information, see Collect Logging Data by Using Azure Diagnostics.