4 ms·
Yep. I wrote a debug logger that could send messages to the browser console from the client, the backend's web process (via websocket), and the backend's backgr
by uhoh-itsmaciek 7y ago
Yep. I wrote a debug logger that could send messages to the browser console from the client, the backend's web process (via websocket), and the backend's background workers (via redis pubsub relayed to websocket). It was pretty tightly coupled to the architecture of the application, so it couldn't be used more generally like this library, but it was pretty simple and very handy for debugging some types of issues. It's worth investing a bit in dev ergonomics on your project: it can pay off in spades.