AzureEventSourceListener.CreateConsoleLogger(EventLevel) Method

Definition

Creates a new instance of AzureEventSourceListener that forwards events to WriteLine(String).

public static Azure.Core.Diagnostics.AzureEventSourceListener CreateConsoleLogger (System.Diagnostics.Tracing.EventLevel level = System.Diagnostics.Tracing.EventLevel.Informational);
static member CreateConsoleLogger : System.Diagnostics.Tracing.EventLevel -> Azure.Core.Diagnostics.AzureEventSourceListener
Public Shared Function CreateConsoleLogger (Optional level As EventLevel = System.Diagnostics.Tracing.EventLevel.Informational) As AzureEventSourceListener

Parameters

level
EventLevel

The level of events to enable.

Returns

AzureEventSourceListener

Applies to