Log the task graph to disk