3 ms·
I have my processes dump messages into a MongoDB database, I give each process a single document and in it's an array they put messages and errors in, removing
by benologist 15y ago
I have my processes dump messages into a MongoDB database, I give each process a single document and in it's an array they put messages and errors in, removing the oldest item beyond a certain size.
There's probably something more elegant but it's working well and it's a negligible amount of code to put messages in or pull them out to display.