slowlog

0.0.7 • Public • Published

slowlog http -handler

js-standard-style build status downloads Greenkeeper badge

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)
}))

license

Apache License, Version 2.0

Readme

Keywords

Package Sidebar

Install

npm i slowlog

Weekly Downloads

1

Version

0.0.7

License

Apache-2.0

Unpacked Size

1.61 kB

Total Files

3

Last publish

Collaborators

  • jameskyburz