Share via


ILoggingChannel Interface

Definition

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

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Properties

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

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

LoggingEnabled

Raised when the logging channel is attached to a LoggingSession or other event tracing and debugging tools.

Applies to

See also