nlf / bucker

A simple logging library for node.js
82 stars 28 forks source link

Added support for passing through the "User" object on a request #27

Open kopertop opened 10 years ago

kopertop commented 10 years ago

Some Frameworks, such as Express and Passport.js, provide a "user" object on the Request object. This pull request allows the middleware to pass that information through, and adds it automatically to the Splunk output module. It should probably also be added to other modules, but I'll leave that up to others to determine where it should go.