ILoggingChannel interface

Applies to Windows and Windows Phone

Represents a source of log messages.

Syntax


public interface ILoggingChannel : IDisposable

Attributes

[Version(0x06030000)]

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-onlyGets a value that indicates whether messages are being logged on the current LoggingChannel.

Level

Read-onlyGets the level of detail for messages from the current LoggingChannel.

Name

Read-onlyGets the name of the current LoggingChannel.

 

Requirements

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

See also

LoggingChannel
IClosable

 

 

Show:
© 2014 Microsoft