add log ringbuffer