When opening stdout as a file for verbose logging, use write mode instead of the default.