ILoggingSession.AddLoggingChannel 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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 的日志记录级别。
- 属性