added a bucket buffer to hold log elements before it is written to the archive.