4 ms·
This is a popular concept. See https://www.npmjs.com/package/bunyan#raw--ringbuffer-stream https://www.npmjs.com/package/bunyan#raw--ringbuffer-stream for examp
by viraptor 8y ago
This is a popular concept. See https://www.npmjs.com/package/bunyan#raw--ringbuffer-stream https://www.npmjs.com/package/bunyan#raw--ringbuffer-stream for example. Many languages have an implementation for something like that.
- Osiris 8y agoI did this for a desktop app I wrote. The liver kept an in memory ring buffer and when there was an unexpected error, it would dump all the previous debug level logs to give context to the error.