windows fix for logging