I have a complete, deployed, Express-based project, with many console.log() and console.error() statements throughout. The project runs using forever, directing the stdout and stderr to 2 separate files.
It all works quite well, but now I'm missing timestamps - to know exactly when errors occurred.
I can do some kind of search/replace throughout my code, or use some npm module that overrides console in each file, but I do not want to touch every model/route file, unless I absolutely have to.
Is there a way, perhaps an Express middleware, that would allow me to add a timestamp to every call made, or do I have to manually add it?