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 |
---|---|
Destroys and cleans up after this instance of the CWTTLogger class. |
|
Adds a specified error to a list of known errors. |
|
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. |
|
Checks a specified result and logs an error if the result shows a failure. |
|
Checks a specified result against a target result and logs an error if both the value and type match. |
|
Clears the current context of the logger object. |
|
Removes all errors of the specified type from a given list of known errors. |
|
Closes a log device topology that the device string or the handle specify. |
|
Creates a log device topology according to the device string. |
|
For internal use only. Called by the parser after servicing the CreateLogDevice method. |
|
Initializes a new instance of the CWTTLogger class. |
|
Disables the specified set of device trace levels. |
|
Enables the specified set of device trace levels. |
|
Traces the end of a test case, clears the current test case context, and sets it to the parent context. |
|
Traces the end of a test case and enables you to specify a GUID-based test ID and a test hierarchy. |
|
Traces the end of a test case by using the specified resource ID. |
|
Retrieves the current pass-fail statistics. |
|
Deletes the specified error from a list of known errors. |
|
Sets the current context of the logger object for all subsequent traces. |
|
Sets the given options for the specified device. |
|
Sets the specified device trace level for all subsequent traces. |
|
Sets the specified device trace priority for all subsequent traces. |
|
Traces the start of a test case. |
|
Traces the start of a test case and enables you to specify a GUID-based test ID and a test hierarchy. |
|
Traces the start of a test case by using the specified resource ID. |
|
Logs a trace of the specified device at the given trace level. |
|
Logs a trace of the specified device at the given trace level by using an XML-formatted data string. |
|
Logs a trace of the specified device at the given trace level by using an XML-formatted data string and a prepared argument list. |
|
Logs a trace of the operating system where the test is run. |
|
Logs a trace of the specified device at the user-defined trace level and a given priority. |
|
Logs a trace of the specified device at the user-defined trace level and a given priority by using a prepared argument list. |
|
Logs a trace of the specified device at the given trace level by using a prepared argument list. |
|
Logs trace data by using a user-defined trace level. |
|
Logs trace data by using a user-defined trace level and an XML-formatted data string. |
|
Logs trace data by using a user-defined trace level and an XML-formatted data string. |
|
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