ILoggingChannel ILoggingChannel ILoggingChannel ILoggingChannel ILoggingChannel Interface

Definition

Represents a source of log messages.

public : interface ILoggingChannel : IClosable
struct winrt::Windows::Foundation::Diagnostics::ILoggingChannel : IClosable
public interface ILoggingChannel : IDisposable
Public Interface ILoggingChannel Implements IDisposable
// You can't instantiate an interface directly in JavaScript. You can use objects that implement the interface, however.
Inheritance
IDisposableIDisposableIDisposable
ILoggingChannelILoggingChannelILoggingChannelILoggingChannelILoggingChannel
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

Enabled Enabled Enabled Enabled Enabled

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

Level Level Level Level Level

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

Name Name Name Name Name

Gets the name of the current LoggingChannel.

Methods

Close Close Close Close Close

Releases system resources that are exposed by a Windows Runtime object.

.NET This interface appears as System.IDisposable.

C++/CX This interface appears as Platform::IDisposable.

(Inherited from IClosable)
LogMessage(String) LogMessage(String) LogMessage(String) LogMessage(String) LogMessage(String)

Logs a message to the current LoggingChannel.

LogMessage(String, LoggingLevel) LogMessage(String, LoggingLevel) LogMessage(String, LoggingLevel) LogMessage(String, LoggingLevel) LogMessage(String, LoggingLevel)

Logs a message to the current LoggingChannel with the specified LoggingLevel.

LogValuePair(String, Int32) LogValuePair(String, Int32) LogValuePair(String, Int32) LogValuePair(String, Int32) LogValuePair(String, Int32)

Logs data to the current LoggingChannel.

LogValuePair(String, Int32, LoggingLevel) LogValuePair(String, Int32, LoggingLevel) LogValuePair(String, Int32, LoggingLevel) LogValuePair(String, Int32, LoggingLevel) LogValuePair(String, Int32, LoggingLevel)

Logs data to the current LoggingChannel with the specified LoggingLevel.

Events

LoggingEnabled LoggingEnabled LoggingEnabled LoggingEnabled LoggingEnabled

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

See Also