TTraceLevel enumeration

The TTraceLevel enumeration defines a set of levels for tracing in WDTF. The meaning on each level depends on registry settings for the ITracer interface.

Syntax


typedef enum  { 
  Trace0_Off     = 0,
  Trace1_Low     = 1,
  Trace2_Medium  = 2,
  Trace3_High    = 3,
  Trace4_All     = 4,
  Trace5_Custom  = 5,
  Trace6_Custom  = 6,
  Trace7_Custom  = 7,
  Trace8_Custom  = 8,
  Trace_Default  = 9
} TTraceLevel;

Constants

Trace0_Off

Tracing is off.

Trace1_Low

The tracing level is low. Generally, only the top layer of traces and failure and warning information is traced.

Trace2_Medium

The tracing level is medium. This level is the default level. It includes all of the traces in Trace1_Low plus standard traces at all layers of WDTF.

Trace3_High

The tracing level is high. This level includes all of the traces in Trace2_Medium plus noisy traces at all layers of WDTF.

Trace4_All

All tracing is enabled. Currently, this tracing level is the same as Trace3_High.

Trace5_Custom

A custom trace level. Currently, this value is set to Trace0_Off.

Trace6_Custom

A custom trace level. Currently, this value is set to Trace0_Off.

Trace7_Custom

A custom trace level. Currently, this value is set to Trace0_Off.

Trace8_Custom

A custom trace level. Currently, this value is set to Trace0_Off.

Trace_Default

The default tracing level. This level tells the ITracer interface to look for the actual level in the registry. ITracer will look in the TraceLevel path for the implementation that you called the ITracing::SetTraceLevel method on. For most implementations, this value is set to Trace2_Medium when you install WDTF.

Remarks

Use the ITracing::SetTraceLevel method to change the trace level of an instance of a WDTF interface at runtime. For more information about how to change the registry default values, see ITracer.

See also

ITracer
ITracing
ITracing::SetTraceLevel

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft