villadora / express-bunyan-logger

bunyan logger middleware for express
139 stars 74 forks source link

support for nested router url paths #18

Closed parisholley closed 10 years ago

parisholley commented 10 years ago

If you nest routers, in express 4 it will keep track of the mounted path so you can see the true URL.

var router1 = require('express').Router();
var router2 = require('express').Router();

router2.get('/in', function (req, res) {
    res.send('Hello World');
});

router1.use('/test', router2);

app.use('/out', router1);