I'm an italian agile software developer, living in Trento (IT)     More about me

How to use morgan with node-simple-router

You can use it like a middleware as it is supposed to be used in combination with router.any to log any reqeust of the web server.

Here a simple example:

var http = require('http')
  , router = require('node-simple-router')()
  , morgan = require('morgan')
  , logger = morgan('combined')


router.get('/hook',function(req, res) {
  res.end('incoming hook')