0.0.7 • Published 5 years ago
slowlog v0.0.7
slowlog http -handler
An http handler to allow logging of slow requests
Usage
// index.js
const slowlog = require('slowlog')
insertframeworkhere.use(slowlog(1000, (req, res) => {
console.log('slow request', req.url, res._headers)
}))