Class Logging
Logging utilities.
Namespace: Microsoft.MixedReality.WebRTC
Assembly: Microsoft.MixedReality.WebRTC.dll
Syntax
public static class Logging : object
Methods
| Improve this Doc View SourceAddSink(ILogSink, LogSeverity)
Add a log sink receiving messages.
Declaration
public static void AddSink(ILogSink sink, LogSeverity minimumSeverity)
Parameters
Type | Name | Description |
---|---|---|
ILogSink | sink | The sink to register. |
LogSeverity | minimumSeverity | Minimum severity of messages to forward to the sink. |
LogMessage(LogSeverity, String)
Log a message with a given severity. The message will be logged alongside the messages generated by the implementation, and received by any registered sink callback like internal messages.
Declaration
public static void LogMessage(LogSeverity severity, string message)
Parameters
Type | Name | Description |
---|---|---|
LogSeverity | severity | Message severity. |
String | message | Message content. |
RemoveSink(ILogSink)
Remove a log sink receiving messages.
Declaration
public static void RemoveSink(ILogSink sink)
Parameters
Type | Name | Description |
---|---|---|
ILogSink | sink | The sink to unregister. |