morgan-debug
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 info.
npm install morgan debug morgan-debug
Note that morgan
and debug
are both peer dependencies and must be installed separately.
Usage
morganDebug(namespace, format, [options]);
namespace
(string): The debug namespace or a debug functionformat
(string): The morgan format stringoptions
(object): Optional options to pass through to morgan
var express = ;var morganDebug = ; var app = ;app;
See the respective libraries for details of their operation and options.