Log driver output to NAME.error and NAME.output.

This is useful for tests which wish to read these files.