IFileLoggingSession.AddLoggingChannel 方法

定义

重载

AddLoggingChannel(ILoggingChannel)

将日志记录通道添加到当前日志记录会话。

AddLoggingChannel(ILoggingChannel, LoggingLevel)

将具有指定日志记录级别的日志记录通道添加到当前日志记录会话。

AddLoggingChannel(ILoggingChannel)

将日志记录通道添加到当前日志记录会话。

public:
 void AddLoggingChannel(ILoggingChannel ^ loggingChannel);
/// [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)

参数

loggingChannel
ILoggingChannel

要添加的日志记录通道。

属性

另请参阅

适用于

AddLoggingChannel(ILoggingChannel, LoggingLevel)

将具有指定日志记录级别的日志记录通道添加到当前日志记录会话。

public:
 void AddLoggingChannel(ILoggingChannel ^ loggingChannel, LoggingLevel maxLevel);
/// [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)

参数

loggingChannel
ILoggingChannel

要添加的日志记录通道。

maxLevel
LoggingLevel

loggingChannel 的日志记录级别。

属性

另请参阅

适用于