configurable-request-log-middleware

Hacked about to be bunyan friendly and accept an "onResponse" function

configurable-request-log-middleware

Hacked about to be bunyan friendly and accept an "onResponse" function

Log an express request.

var requestLog = require('configurable-request-log-middleware');
 
var logger = //some bunyan log instanse 
var onResponseFunc = //some instance of configurable-on-response 
 
var app = express();
 
 
app.use(requestLog(logger, onResponseFunc));
 

Return a request logger middleware.

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