Buffer up log before flush out to disk to prevent frequent io