Skip to content

brians-open-source-stuff/express-log-errors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

Maintainer

Contributors