add LogTask in api