add size limit to logs