مشاركة عبر


FileLoggingSession.AddLoggingChannel Method

Definition

Overloads

AddLoggingChannel(ILoggingChannel)

Adds a logging channel to the current logging session.

AddLoggingChannel(ILoggingChannel, LoggingLevel)

Adds a logging channel to the current logging session. The logging channel only accepts events that have a logging level at or above the specified logging level.

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

Remarks

The logging level is set to LoggingLevel.Verbose. The **LoggingChannel ** will accept all events.

Adding a channel to a session more than once updates the level.

See also

Applies to

AddLoggingChannel(ILoggingChannel, LoggingLevel)

Adds a logging channel to the current logging session. The logging channel only accepts events that have a logging level at or above the specified logging level.

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 minimum logging level that an event must have to be accepted by the session.

Implements

Attributes

Remarks

maxLevel specifies the which events from the channel the session will accept and which are ignored. It does not change the level of the channel itself.

See also

Applies to