I am looking to log my console(stdout) messages, generated from my dependencies etc to a storage of mine. Most of the results I found would override the console.log() or spawn a child process which isn't useful for my use case. I want to listen to every message, error etc.
How can I go about doing this?