I'm starting my node.js server like this:
sudo NODE_ENV=production forever start -o out.log -e err.log server.js
Occasionally I get errors in my error log.
But all I get is something like this:
Cannot read property 'length' of undefined
at eval at <anonymous> (/home/ubuntu/www/node_modules/jade/lib/jade.js:161:8)
at anonymous (eval at <anonymous> (/home/ubuntu/www/node_modules/jade/lib/jade.js:161:8))
at Object.<anonymous> (/home/ubuntu/www/node_modules/jade/lib/jade.js:166:12)
at ServerResponse._render (/home/ubuntu/www/node_modules/express/lib/view.js:422:21)
at ServerResponse.render (/home/ubuntu/www/node_modules/express/lib/view.js:315:17)
at callbacks (/home/ubuntu/www/node_modules/express/lib/router/index.js:272:11)
at Promise.<anonymous> (/home/ubuntu/www/helper/auth.js:118:11)
at Promise.<anonymous> (/home/ubuntu/www/node_modules/mongoose/lib/promise.js:120:8)
How do I make the error log display more information, such as the datetime the error took place?
npm lssay?