Skip to content

JamesKyburz/slowlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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