bithavoc / express-winston

express.js middleware for winstonjs
https://www.npmjs.com/package/express-winston
MIT License
798 stars 186 forks source link

app.router is deprecated #48

Closed YouriT closed 9 years ago

YouriT commented 9 years ago

How do you handle exceptions like in your example section without using app.router because it's deprecated since 4.x...

Thanks !

bithavoc commented 9 years ago

Same thing, instead of app.router you create your own instance and add express-winston.

var router = express.Router();

YouriT commented 9 years ago

Yep but I went with the app.route('....').get/.post/... Therefore I don't get how to go...

But seams to work without the router instance and it still grab the route details etc.