An http handler to allow logging of slow requests
// index.js
const slowlog = require('slowlog')
insertframeworkhere.use(slowlog(1000, (req, res) => {
console.log('slow request', req.url, res._headers)
}))
An http handler to allow logging of slow requests
// index.js
const slowlog = require('slowlog')
insertframeworkhere.use(slowlog(1000, (req, res) => {
console.log('slow request', req.url, res._headers)
}))
npm i slowlog
1
0.0.7
Apache-2.0
1.61 kB
3