Share via


LoggingSession.AddLoggingChannel Method

Definition

Overloads

AddLoggingChannel(ILoggingChannel)

Adds a logging channel to the current logging session.

AddLoggingChannel(ILoggingChannel, LoggingLevel)

Adds a logging channel with the specified logging level to the current logging session.

AddLoggingChannel(ILoggingChannel)

Adds a logging channel to the current logging session.

public:
 virtual void AddLoggingChannel(ILoggingChannel ^ loggingChannel) = AddLoggingChannel;
/// [Windows.Foundation.Metadata.Overload("AddLoggingChannel")]
void AddLoggingChannel(ILoggingChannel const& loggingChannel);
[Windows.Foundation.Metadata.Overload("AddLoggingChannel")]
public void AddLoggingChannel(ILoggingChannel loggingChannel);
function addLoggingChannel(loggingChannel)
Public Sub AddLoggingChannel (loggingChannel As ILoggingChannel)

Parameters

loggingChannel
ILoggingChannel

The logging channel to add.

Implements

Attributes

See also

Applies to

AddLoggingChannel(ILoggingChannel, LoggingLevel)

Adds a logging channel with the specified logging level to the current logging session.

public:
 virtual void AddLoggingChannel(ILoggingChannel ^ loggingChannel, LoggingLevel maxLevel) = AddLoggingChannel;
/// [Windows.Foundation.Metadata.Overload("AddLoggingChannelWithLevel")]
void AddLoggingChannel(ILoggingChannel const& loggingChannel, LoggingLevel const& maxLevel);
[Windows.Foundation.Metadata.Overload("AddLoggingChannelWithLevel")]
public void AddLoggingChannel(ILoggingChannel loggingChannel, LoggingLevel maxLevel);
function addLoggingChannel(loggingChannel, maxLevel)
Public Sub AddLoggingChannel (loggingChannel As ILoggingChannel, maxLevel As LoggingLevel)

Parameters

loggingChannel
ILoggingChannel

The logging channel to add.

maxLevel
LoggingLevel

The logging level for loggingChannel.

Implements

Attributes

Remarks

You can also use this function to change the level at which a channel is added to a session; to do so, call AddLoggingChannel, using the existing logging channel, but with the updated level.

See also

Applies to