Performing a Trace
The purpose of DTM Logger is to log messages from your test application to various logging devices. A trace is a log entry.
The following attributes are associated with a trace:
- Run-time information (RTI) is information about who generated the trace.
- Trace context is information about the logical environment of the trace. For more information about defining a trace context, see Trace Context.
- Trace level defines the purpose or type of the trace. For more information about available trace levels, see Trace Level.
- Trace priority determines the relative importance of the trace. For more information about available trace priorities, see Trace Priority.
- Trace message defines the message to be logged. For more information about trace message limitations, see Trace Message.
To perform a trace by using C
Call one of the following functions: WTTLogTrace, WTTLogTraceEx, or WTTLogUserDefinedTraceEx.
To perform a trace by using C++
Call one of the following methods:
- CWTTLogger::Trace
- CWTTLogger::TraceEx
- CWTTLogger::TraceExV
- CWTTLogger::TraceMsg
- CWTTLogger::TraceV
- CWTTLogger::UserDefinedTrace
- CWTTLogger::UserDefinedTraceEx
- CWTTLogger::UserDefinedTraceExV
- CWTTLogger::UserDefinedTraceV.
To perform a trace by using COM
Call one of the following methods: IWTTLog::Trace or IWTTLog::UserDefinedTrace.
To perform a trace by using .NET
- Create the appropriate trace level object. For more information about creating .NET trace level objects, see Trace Level.
- Call the WTTLogger.Trace method passing the trace level object.
This section includes:
See Also
Getting Started with DTM Logger, Code Samples for DTM Logger
Send feedback on this topic
Built on December 10, 2009