Improve logging when redirecting to a file (ref #61).