Share via


CWTTLogger Class (C++)

Note  This content applies to the Windows Logo Kit (WLK). For the latest information using the new Windows Hardware Certification Kit (HCK), see Windows HCK User's Guide on the Windows Hardware Dev Center.

The CWTTLogger class encapsulates C++ methods for logging messages and errors.

public  class  CWTTLogger

CWTTLogger contains the following public methods.

Method Description

~CWTTLogger

Destroys and cleans up after this instance of the CWTTLogger class.

AddErrorToErrorList

Adds a specified error to a list of known errors.

Assert

Checks the specified condition and, if the condition is false, fails the test case unless a trace is logged or the user specifically declares the test case to be skipped.

CheckResult

Checks a specified result and logs an error if the result shows a failure.

CheckResultEx

Checks a specified result against a target result and logs an error if both the value and type match.

ClearContext

Clears the current context of the logger object.

ClearErrorList

Removes all errors of the specified type from a given list of known errors.

CloseLogDevice

Closes a log device topology that the device string or the handle specify.

CreateLogDevice

Creates a log device topology according to the device string.

CreateLogDeviceCallback

For internal use only. Called by the parser after servicing the CreateLogDevice method.

CWTTLogger

Initializes a new instance of the CWTTLogger class.

DisableTraceLevels

Disables the specified set of device trace levels.

EnableTraceLevels

Enables the specified set of device trace levels.

EndTest

Traces the end of a test case, clears the current test case context, and sets it to the parent context.

EndTestEx

Traces the end of a test case and enables you to specify a GUID-based test ID and a test hierarchy.

EndTestWithResID

Traces the end of a test case by using the specified resource ID.

GetPFRollupStats

Retrieves the current pass-fail statistics.

RemoveErrorFromErrorList

Deletes the specified error from a list of known errors.

SetContext

Sets the current context of the logger object for all subsequent traces.

SetDeviceOption

Sets the given options for the specified device.

SetDeviceTraceLevel

Sets the specified device trace level for all subsequent traces.

SetDeviceTracePriority

Sets the specified device trace priority for all subsequent traces.

StartTest

Traces the start of a test case.

StartTestEx

Traces the start of a test case and enables you to specify a GUID-based test ID and a test hierarchy.

StartTestWithResID

Traces the start of a test case by using the specified resource ID.

Trace

Logs a trace of the specified device at the given trace level.

TraceEx

Logs a trace of the specified device at the given trace level by using an XML-formatted data string.

TraceExV

Logs a trace of the specified device at the given trace level by using an XML-formatted data string and a prepared argument list.

TraceMachineInfo

Logs a trace of the operating system where the test is run.

TraceMsg

Logs a trace of the specified device at the user-defined trace level and a given priority.

CWTTLogger::TraceMsgV

Logs a trace of the specified device at the user-defined trace level and a given priority by using a prepared argument list.

TraceV

Logs a trace of the specified device at the given trace level by using a prepared argument list.

UserDefinedTrace

Logs trace data by using a user-defined trace level.

UserDefinedTraceEx

Logs trace data by using a user-defined trace level and an XML-formatted data string.

UserDefinedTraceExV

Logs trace data by using a user-defined trace level and an XML-formatted data string.

UserDefinedTraceV

Logs trace data by using a user-defined trace level and a prepared argument list.

 

Requirements

Header: Wttlogger.h

Library: WTTLog.dll

See Also

WTTLog Functions (C), IWTTLog Interface (COM)

 

 

Build date: 9/14/2012