Support --log option and default to STDOUT rather than STDERR