Enable CeLog Event Tracking (Compact 2013)

3/28/2014

You can create a run-time image that automatically starts CeLog Event Tracking during boot by setting environment variables before you build. It is also possible to set them via the command line in a build window.

Note

Do not include CeLog on a shipping device because the logging that CeLog performs can reduce system performance. Also, omitting CeLog reduces the attack surface through which a malicious user could try to compromise the system.

To enable CeLog event tracking from Platform Builder

  1. In Platform Builder, from the Project menu, select Properties.

  2. In the Property Pages window, select Configuration Properties and then select Build Options.

  3. In the Build Options window, select Flush tracked events to Release Directory (IMGAUTOFLUSH=1).

    This adds CeLogFlush.exe to ROM and causes the OS to launch it during boot. Tracked events will be flushed to Celog.clg in the Release directory. This also adds Celog.dll to the run-time image.

  4. (Optional) If you want to load CeLog.dll at an earlier point of the boot process, ensure that Enable Event Tracking During Boot (IMGCELOGENABLE=1) is selected.

    This includes CeLog.dll in the MODULES section of the run-time image, which causes the kernel to load it early in boot.

  5. Click OK.

  6. Build the run-time image.

See Also

Other Resources

CeLog Event Tracking