Mag is the streaming logger for NodeJS.
mag-morgan
is morgan adapted for use with mag logger.
$ npm install mag-morgan --save
You can use mag-morgan
as you used morgan
before.
var express = require('express');
var app = express();
var httpLogger = require('mag-morgan');
app.use(httpLogger('combined'));
Get a well-known HTTP logger with all features of mag logger.
You can find sample in example folder of this repository.