EventLogger Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A static class to control event-based SDK logging. Turning on logging while running your Speech SDK scenario provides detailed information from the SDK's core native components. If you report an issue to Microsoft, you may be asked to provide logs to help Microsoft diagnose the issue. Your application should not take dependency on particular log strings, as they may change from one SDK release to another without notice. Use EventLogger when you want to get access to new log strings as soon as they are available, and you need to further process them. For example, integrating Speech SDK logs with your existing logging collection system. Added in version 1.20.0
public static class EventLogger
type EventLogger = class
Public Class EventLogger
- Inheritance
-
EventLogger
Remarks
Event logging is a process wide construct. That means that if (for example) you have multiple speech recognizer objects running in parallel, you can only register one callback function to receive interleaved logs from all recognizers. You cannot register a separate callback for each recognizer.
Methods
SetFilters(String[]) |
Sets or clears filters for log messages. Once filters are set, the event will be invoked only if the log message contains at least one of the strings specified by the filters. The match is case sensitive. |
SetLevel(Level) |
Sets the level of the messages to be captured by the logger |
Events
OnMessage |
Event that gets invoked for each new log messages. |
Applies to
Azure SDK for .NET