DataCollectionLogger 类

定义

将诊断数据适配器的错误消息发送到客户端,该客户端可以是测试运行程序、Visual Studio IDE 或 Visual Studio Test Professional。

public ref class DataCollectionLogger abstract
public abstract class DataCollectionLogger
type DataCollectionLogger = class
Public MustInherit Class DataCollectionLogger
继承
DataCollectionLogger

构造函数

DataCollectionLogger()

方法

LogError(DataCollectionContext, Exception)

记录异常的错误消息。

LogError(DataCollectionContext, String)

记录错误消息。

LogError(DataCollectionContext, String, Exception)

记录异常的错误消息。

LogException(DataCollectionContext, Exception, DataCollectorMessageLevel)
LogWarning(DataCollectionContext, String)

记录一条警告消息。

SendData(CustomNotificationEventArgs, CustomCollectorData)
SendData(DataCollectionContext, CustomCollectorData)

适用于