ILoggingChannel interface

ILoggingChannel interface

Represents a source of log messages.

Syntax


public interface ILoggingChannel : IDisposable

Members

The ILoggingChannel interface has these types of members:

Events

The ILoggingChannel interface has these events.

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

 

Methods

The ILoggingChannel interface has these methods. It also inherits methods from the Object class.

MethodDescription
LogMessage(String) Logs a message to the current LoggingChannel.
LogMessage(String,LoggingLevel) Logs a message to the current LoggingChannel with the specified LoggingLevel.
LogValuePair(String,Int32) Logs data to the current LoggingChannel.
LogValuePair(String,Int32,LoggingLevel) Logs data to the current LoggingChannel with the specified LoggingLevel.

 

Properties

The ILoggingChannel interface has these properties.

PropertyAccess typeDescription

Enabled

Read-only

Gets a value that indicates whether messages are being logged on the current LoggingChannel.

Level

Read-only

Gets the level of detail for messages from the current LoggingChannel.

Name

Read-only

Gets the name of the current LoggingChannel.

 

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Foundation.Diagnostics
Windows::Foundation::Diagnostics [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Foundation.Diagnostics
Windows::Foundation::Diagnostics [C++]

Metadata

Windows.winmd

Attributes

[Version(0x06030000)]

See also

LoggingChannel
IClosable

 

 

Show:
© 2017 Microsoft