logpersist: incorporate size and buffer tunables
am: 515f091f5e  -s ours

Change-Id: Ie8ba91685e055f8d0e0e23f4f3cff4faab683172