used readcloser for logs