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
- Host: GitHub
- URL: https://github.com/brians-open-source-stuff/express-log-errors
- Owner: brians-open-source-stuff
- License: mit
- Created: 2018-11-10T15:35:59.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-04T11:26:10.000Z (about 7 years ago)
- Last Synced: 2025-04-18T16:38:47.022Z (about 1 year ago)
- Topics: error-log, express-middleware, expressjs, nodejs, npm-package
- Language: JavaScript
- Homepage:
- Size: 26.4 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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
*