ILoggingChannel ILoggingChannel ILoggingChannel ILoggingChannel Interface

Definition

Represents a source of log messages.

public : interface ILoggingChannelpublic interface ILoggingChannelPublic Interface ILoggingChannel// You can use this interface in JavaScript.
Inheritance
IClosableIDisposableIDisposableIDisposable
ILoggingChannelILoggingChannelILoggingChannelILoggingChannel
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Inherited Members

Inherited methods

Properties

Enabled Enabled Enabled Enabled

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

public : PlatForm::Boolean Enabled { get; }public bool Enabled { get; }Public ReadOnly Property Enabled As bool// You can use this property in JavaScript.
Value
PlatForm::Boolean bool bool bool

True if messages are being logged on the current channel; otherwise, false.

Level Level Level Level

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

public : LoggingLevel Level { get; }public LoggingLevel Level { get; }Public ReadOnly Property Level As LoggingLevel// You can use this property in JavaScript.
Value
LoggingLevel LoggingLevel LoggingLevel LoggingLevel

The level of detail for messages.

Name Name Name Name

Gets the name of the current LoggingChannel.

public : PlatForm::String Name { get; }public string Name { get; }Public ReadOnly Property Name As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The name.

Methods

LogMessage(String) LogMessage(String) LogMessage(String) LogMessage(String)

Logs a message to the current LoggingChannel.

public : void LogMessage(PlatForm::String eventString)public void LogMessage(String eventString)Public Function LogMessage(eventString As String) As void// You can use this method in JavaScript.
Parameters
eventString
PlatForm::String String String String

The message to log.

See Also

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

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

public : void LogMessage(PlatForm::String eventString, LoggingLevel level)public void LogMessage(String eventString, LoggingLevel level)Public Function LogMessage(eventString As String, level As LoggingLevel) As void// You can use this method in JavaScript.
Parameters
eventString
PlatForm::String String String String

The message to log.

See Also

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

Logs data to the current LoggingChannel.

public : void LogValuePair(PlatForm::String value1, int value2)public void LogValuePair(String value1, Int32 value2)Public Function LogValuePair(value1 As String, value2 As Int32) As void// You can use this method in JavaScript.
Parameters
value1
PlatForm::String String String String

The string to associate with value2.

value2
int Int32 Int32 Int32

The value to associate with value1.

See Also

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.

public : void LogValuePair(PlatForm::String value1, int value2, LoggingLevel level)public void LogValuePair(String value1, Int32 value2, LoggingLevel level)Public Function LogValuePair(value1 As String, value2 As Int32, level As LoggingLevel) As void// You can use this method in JavaScript.
Parameters
value1
PlatForm::String String String String

The string to associate with value2.

value2
int Int32 Int32 Int32

The value to associate with value1.

See Also

Events

LoggingEnabled LoggingEnabled LoggingEnabled LoggingEnabled

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

public : abstract event TypedEventHandler LoggingEnabled<ILoggingChannel,  object>public abstract event TypedEventHandler LoggingEnabled<ILoggingChannel,  object>Public MustInherit Event LoggingEnabled<ILoggingChannel,  object>// You can use this event in JavaScript.

See Also

  • IClosable IDisposable IDisposable IDisposable