add functionality to dump ring buffer to disk file
For example: /usr/bin/dlt-logstorage-ctrl -D /tmp/ss.dlt
will dump the entries in ringbuffer to file /tmp/ss.dlt
Hello @jianjun-huang thanks for your contribution, this looks interesting feature for dlt. Dumping logs from ring buffer to files would be very useful in case no daemon available and we need to rotate the buffer for new logs. This prevents missing all the old logs. I will review and test on my local. Regards
Hello @jianjun-huang I read through the code change and it seems the same functionality of our current implementation of Sync Behavior ON_DEMAND: When activate this sync option, we just need to send a sync signal for dumping logs from cache (logstorage ring buffer) to dlt files. Could you kindly clarify my point? In this case, we will reconsider to not approve for this PR. Regards
Hi @minminlittleshrimp this option is similar to ON_DEMAND, but this option does not remove logs from ringbuffer, just peek dlt messages from the ringbuffer.
I see, I need to check in my local. So sorry for the late response, we are busy these days releasing internal dlt.