This topic has not yet been rated - Rate this topic

Example 3: Typical Start Command

The following command format is typically used to start a trace session:


tracelog -start MyTrace -guid MyProvider.guid -f d:\traces\testtrace.etl -flag 2 -level 0xFFFF

The command starts a trace session named "MyTrace".

It uses the -guid parameter to indicate the MyProvider.guid file, a simple text file that contains nothing but the provider's control GUID. You can also use a control GUID file, such as Tracedrv.ctl, with the -guid parameter. Tracedrv.ctl is included in the src\general\tracing\tracedrv subdirectory of the Windows Driver Kit (WDK).

The command includes the -f parameter to specify the name and location of the event trace log file. It includes the -flag parameter to specify the flags set and the -level parameter to specify the level setting. You can omit these parameters, but some trace providers do not generate any trace messages unless you set the flag or the level.

 

 

Send comments about this topic to Microsoft

Build date: 5/7/2013

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.