I have a complete, deployed, Express-based project, with many console.log() and console.error() statements throughout. The project runs using forever, directing the st
module: "log-timestamp" works for me.
see https://www.npmjs.com/package/log-timestamp
npm install log-timestamp
Simple to use
console.log('Before log-timestamp'); require('log-timestamp'); console.log('After log-timestamp');
Result
Before log-timestamp [2012-08-23T20:08:32.000Z] After log-timestamp