Morgan-debug is an express middleware which composes the morgan logger middleware with the debug console output library for a consistent logging output with other library debug outputs.
npm install morgan-debug
morganDebug(namespace, format, [options]);
namespace
is the debug namespace or an instance of debug functionformat
is the morgan formatoptions
is the options to be passed to morgan`
var express = require('express');
var morganDebug = require('morgan-debug');
var app = express();
app.use(morganDebug('myapp', 'combined'));
See the respective libraries for details of their operation and options.