Disable the stdout logger on Windows when no console is available to avoid access violations.