Configurable win32 error logging