make logger buffered