An open API service indexing awesome lists of open source software.

https://github.com/brians-open-source-stuff/express-log-errors

ExpressJS middleware for logging errors from route operations
https://github.com/brians-open-source-stuff/express-log-errors

error-log express-middleware expressjs nodejs npm-package

Last synced: 10 months ago
JSON representation

ExpressJS middleware for logging errors from route operations

Awesome Lists containing this project

README

          

# express-log-errors
[Contribute](./CONTRIBUTE.md) | [Changelog](./CHANGELOG.md) | [License](./LICENSE)

ExpressJS middleware for logging errors from route operations.

## Install
```
npm install express-log-errors
```

## Usage
```javascript
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
* [Brian Emilius](https://github.com/BrianEmilius)

## Contributors
*