Better subprocess output logging.