make logging work on windows