Free Trial *Internet Service Required
This topic has not yet been rated - Rate this topic

OnDemandTransferOptions.LogLevelFilter Property

Gets or sets the filter level for event data that has been logged with level information.

Namespace: Microsoft.WindowsAzure.Diagnostics.Management
Assembly: Microsoft.WindowsAzure.Diagnostics (in Microsoft.WindowsAzure.Diagnostics.dll)
'Usage
Dim instance As OnDemandTransferOptions
Dim value As LogLevel

value = instance.LogLevelFilter

instance.LogLevelFilter = value
public LogLevel LogLevelFilter { get; set; }
/** @property */
/** @attribute CompilerGeneratedAttribute() */ 
public LogLevel get_LogLevelFilter ()

/** @property */
/** @attribute CompilerGeneratedAttribute() */ 
public void set_LogLevelFilter (LogLevel value)

CompilerGeneratedAttribute 
public function get LogLevelFilter () : LogLevel

CompilerGeneratedAttribute 
public function set LogLevelFilter (value : LogLevel)

Property Value

Type: Microsoft.WindowsAzure.Diagnostics.LogLevel

Returns LogLevel.

The LogLevelFilter property specifies a LogLevel value by which to filter diagnostic data. If the logging level is set to Undefined, all data is transferred regardless of logging level.

Example

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;


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows Vista, Windows 7 and Windows Server 2008

Target Platforms

Did you find this helpful?
(1500 characters remaining)
Community Additions ADD
facebook page visit twitter rss feed newsletter