Save logging to a file on win32