bitdriftlabs / capture-sdk

mobile bitdrift SDK
Other
9 stars 2 forks source link

Memory only ring buffer #62

Open pyricau opened 2 hours ago

pyricau commented 2 hours ago

Log frameworks can be fairly hard on SSDs and shorten their lifes. We have some devices for which we're ok with the trade off of losing log data on crashes, with the benefit of never writing to disk. There's also a middle ground where you try to flush to disk only when a crash happen (and are ok with that potentially not working).

mattklein123 commented 1 hour ago

We can support this fairly easily by having a config option which would enable the memory buffer only vs. the aggregated buffer.