Set up logging stdout to a file.

This will create the file, but we don't get output yet.
I think system() doesn't preserve our stdout or something...

Needs more investigation.