Capture and direct test output to logger