Share via


Trace Priority

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.

A trace priority indicates to DTM Logger the relative importance of the trace entry. Your application can dynamically set priority masks to filter traces based on their priority. Trace priority can be very useful when you call the UserDefinedTrace method.

Using trace priorities enables certain traces to be blocked or filtered based on their importance during run time. If user-defined trace levels are used, you can use the trace priority to determine the urgency for logging those user traces in the log file. If, on the other hand, predefined trace levels are used, the trace priorities are fixed and your application cannot override them. In either case, you can benefit from filtering based on priority.

For implementations of trace priorities in specific technologies, see the following topics:

Trace Priorities in Managed Code (.NET)

Trace Levels in Unmanaged Code (C, C++, COM)

See Also

Performing a Trace, Trace Level, Trace Context

 

 

Build date: 9/14/2012