request-bunyan-log-middleware

Log an express request.

request-bunyan-log-middleware

Log an express request.

slightly modified to me bunyan format friendly

var requestLog = require('request-log-middleware');
var logger = require('bunyan').createLogger({name:'myapp'});
 
var app = express();
 
app.configure('production', function () {
  app.use(requestLog(logger));
});

Return a request logger middleware.

WWWWWW||WWWWWW
 W W W||W W W
      ||
    ( OO )__________
     /  |           \
    /o o|    MIT     \
    \___/||_||__||_|| *
         || ||  || ||
        _||_|| _||_||
       (__|__|(__|__|