How can I log any errors from ExpressJS apps into a file?
I know I can log a Slim framework easily with monolog:
$app->get(\'/tickets\', function
You can either add a logging library like morgan or if you have your node app running under a process manager, like pm2, then pm2 will keep track of the logging for you. I haven't used pm2 a ton, but from what I understand you could keep you console.log statements the same and pm2 will save all the output from your app into log files for you. You can read more about pm2's logging capabilities here.