https://github.com/jameskyburz/slowlog
http middleware for logging slow http handlers
https://github.com/jameskyburz/slowlog
http logging middeware slow
Last synced: 3 months ago
JSON representation
http middleware for logging slow http handlers
- Host: GitHub
- URL: https://github.com/jameskyburz/slowlog
- Owner: JamesKyburz
- Created: 2018-11-14T15:18:26.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-06-08T05:07:39.000Z (over 4 years ago)
- Last Synced: 2025-06-09T16:46:33.058Z (4 months ago)
- Topics: http, logging, middeware, slow
- Language: JavaScript
- Homepage: https://github.com/jameskyburz/slowlog
- Size: 168 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# slowlog http -handler
[](https://github.com/feross/standard)
[](https://travis-ci.org/JamesKyburz/slowlog)
[](https://npmjs.org/package/slowlog)
[](https://greenkeeper.io/)An http handler to allow logging of slow requests
## Usage
```javascript
// index.js
const slowlog = require('slowlog')
insertframeworkhere.use(slowlog(1000, (req, res) => {
console.log('slow request', req.url, res._headers)
}))
```# license
[Apache License, Version 2.0](LICENSE)