log subprocess stdout and stderr