Create API to get log for each task