Add check_output_logged to utils