Share via


Setting CeLog Zones Programmatically (Windows Embedded CE 6.0)

1/5/2010

You can set the CeLog collection zones dynamically from an application by calling CeLogSetZones. While CeLogSetZones provides three zone values for you to manipulate, only the CE zone will affect the collection of data on your device. The user and process zones are unused.

You can also determine the current CeLog zone settings, along with the set of zones that are available for use, by calling CeLogGetZones.

To disable logging, set the CE zone to zero. To enable logging, set the CE zone to a bitmask of one or more available zones.

If logging was previously disabled, you may need to call CeLogReSync to make the kernel create a list of the existing processes, threads, and modules. Tools such as Remote Kernel Tracker use this list to display the log contents. If the log does not contain the current list of processes and threads, Remote Kernel Tracker cannot graphically display thread activity.

See Also

Other Resources

Filtering CeLog Events
CeLog Zones
CeLog Event Tracking Reference