ILoggingChannel Interface
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.
Represents a source of log messages.
public interface class ILoggingChannel : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(3919905603, 4567, 20225, 181, 202, 207, 73, 82, 120, 192, 168)]
struct ILoggingChannel : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(3919905603, 4567, 20225, 181, 202, 207, 73, 82, 120, 192, 168)]
public interface ILoggingChannel : System.IDisposable
Public Interface ILoggingChannel
Implements IDisposable
- Derived
- Attributes
- Implements
Windows requirements
| Requirements | Description |
|---|---|
| Device family |
Windows 10 (introduced in 10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Properties
| Name | Description |
|---|---|
| Enabled |
Gets a value that indicates whether messages are being logged on the current LoggingChannel. |
| Level |
Gets the level of detail for messages from the current LoggingChannel. |
| Name |
Gets the name of the current LoggingChannel. |
Methods
| Name | Description |
|---|---|
| Dispose() |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
| LogMessage(String, LoggingLevel) |
Logs a message to the current LoggingChannel with the specified LoggingLevel. |
| LogMessage(String) |
Logs a message to the current LoggingChannel. |
| LogValuePair(String, Int32, LoggingLevel) |
Logs data to the current LoggingChannel with the specified LoggingLevel. |
| LogValuePair(String, Int32) |
Logs data to the current LoggingChannel. |
Events
| Name | Description |
|---|---|
| LoggingEnabled |
Raised when the logging channel is attached to a LoggingSession or other event tracing and debugging tools. |