EventSourceLogger Class

Definition

An event source logger for SDK messages that integrates with System.Diagnostics.Tracing.EventSource.

public static class EventSourceLogger
type EventSourceLogger = class
Public Class EventSourceLogger
Inheritance
EventSourceLogger

Remarks

This logger provides the C# idiomatic EventSource logging support for the Speech SDK, enabling integration with .NET diagnostics tools such as PerfView, Application Insights, and other EventSource consumers. Note that EventSource logging is a process-wide construct. If multiple speech recognizer instances are running in parallel, their events will be interleaved in the log output. The EventSource name used by this logger is "Microsoft-CognitiveServices-Speech".

Properties

Name Description
Instance

Gets the singleton instance of the Speech EventSource for advanced scenarios.

Methods

Name Description
SetFilters(String[])

Sets or clears filters for log messages.

SetLevel(Level)

Sets the level of the messages to be captured by the logger

Applies to