use tee to output to both test.log and stdout