express-log-errors
v2.1.1
Published
express middleware for logging errors from routes
Downloads
22
Maintainers
Readme
express-log-errors
Contribute | Changelog | License
ExpressJS middleware for logging errors from route operations.
Install
npm install express-log-errors
Usage
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);