change the api of logReader