Use event logging to record errors that occur during any of the functions in the performance DLL. Logging error events aids in troubleshooting applications providing performance data during development and after installation. Be careful not to log error events on every Collect call, however, because data collection can be frequent. For information about using event logging in the performance DLL or in a user-mode application, refer to the Windows NT SDK documentation. For information about using event logging in a kernel-mode application, refer to the Windows NT Device Driver Kit documentation.