Contribute | Changelog | License
ExpressJS middleware for logging errors from route operations.
npm install express-log-errors
const app = require('express')();
const logErrors = require('express-log-errors');
app.get('/test', (req, res, next) => {
next(new Error('Test error message'));
});
app.use(logErrors());
app.listen(3000);