How can I change the output of the console in javascript to a file? I want to do this like in java. How can I do this? I want the logs to end up in a file instead of in the console. I need this for all of my dependencies.
Node.js console.log() in txt file does not help. My project is a dependency itself.