ILoggingChannel ILoggingChannel ILoggingChannel ILoggingChannel Interface

Represents a source of log messages.

Syntax

Declaration

public interface ILoggingChannelpublic interface ILoggingChannelPublic Interface ILoggingChannelpublic interface ILoggingChannel

Inheritance Hierarchy

Inherited Members

Inherited methods

Properties summary

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

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

Gets the name of the current LoggingChannel.

Methods summary

Logs a message to the current LoggingChannel.

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

Logs data to the current LoggingChannel.

Logs data to the current LoggingChannel with the specified LoggingLevel.

Events summary

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

Properties

  • Enabled
    Enabled
    Enabled
    Enabled

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

    public bool Enabled { get; }public bool Enabled { get; }Public ReadOnly Property Enabled As boolpublic bool Enabled { get; }

    Property Value

    • bool
      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 LoggingLevelpublic LoggingLevel Level { get; }

    Property Value

  • Name
    Name
    Name
    Name

    Gets the name of the current LoggingChannel.

    public string Name { get; }public string Name { get; }Public ReadOnly Property Name As stringpublic string Name { get; }

    Property Value

    • 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(String eventString)public void LogMessage(String eventString)Public Function LogMessage(eventString As String) As voidpublic void LogMessage(String eventString)

    Parameters

    • eventString
      System.String
      System.String
      System.String
      System.String

      The message to log.

  • 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(String eventString, LoggingLevel level)public void LogMessage(String eventString, LoggingLevel level)Public Function LogMessage(eventString As String, level As LoggingLevel) As voidpublic void LogMessage(String eventString, LoggingLevel level)

    Parameters

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

    Logs data to the current LoggingChannel.

    public void LogValuePair(String value1, Int32 value2)public void LogValuePair(String value1, Int32 value2)Public Function LogValuePair(value1 As String, value2 As Int32) As voidpublic void LogValuePair(String value1, Int32 value2)

    Parameters

    • value1
      System.String
      System.String
      System.String
      System.String

      The string to associate with value2.

    • value2
      System.Int32
      System.Int32
      System.Int32
      System.Int32

      The value to associate with value1.

  • 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(String value1, Int32 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 voidpublic void LogValuePair(String value1, Int32 value2, LoggingLevel level)

    Parameters

    • value1
      System.String
      System.String
      System.String
      System.String

      The string to associate with value2.

    • value2
      System.Int32
      System.Int32
      System.Int32
      System.Int32

      The value to associate with value1.

    • level

      The logging level.

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 LoggingEnabledpublic abstract event TypedEventHandler LoggingEnabledPublic MustInherit Event LoggingEnabledpublic abstract event TypedEventHandler LoggingEnabled

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.GuidAttribute

Details

Assembly

Windows.Foundation.Diagnostics.dll