Share via


Modifying The Size Of The CeLog Buffer (Windows Embedded CE 6.0)

1/5/2010

If you want to modify the size of the CeLog buffer, you must set the buffer size before any application loads CeLog.dll. Once CeLog.dll is loaded, there is no way to dynamically re-size the buffer.

The CeLog buffer defaults to a size of 128KB. You can modify the size of the CeLog buffer in a variety of ways:

  • In the device registry

    [HKEY_LOCAL_MACHINE\System\CeLog]
        "BufferSize"=dword:<size> 
    

    Since the IMGCELOGENABLE environment variable causes the kernel to load CeLog.dll before the device registry is available, you cannot use this registry setting to set the size of the buffer when you are using IMGCELOGENABLE.

  • Command-line parameter
    If you launch CeLogFlush.exe or OSCapture.exe from a command line, you can use the -buf command-line option to set the registry value before loading CeLog.dll.
    For more information, see CeLogFlush Command-Line Overrides and OSCapture Command-Line Overrides.

  • Command-Line Options with Target Control
    From the Target Control Window, you can use the log command with the -buf option to control the size of the CeLog buffer. For example, the following command sets the buffer size to 1MB:log -buf 0x00100000

See Also

Concepts

Avoiding CeLog Data Loss

Other Resources

CeLogFlush.exe
OSCapture.exe