mag-morgan
v0.0.3
Published
morgan adapted for use with mag logger
Downloads
3
Readme
mag-morgan
Mag is the streaming logger for NodeJS.
mag-morgan
is morgan adapted for use with mag logger.
Installation
$ npm install mag-morgan --save
Usage
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'));
Motivation
Get a well-known HTTP logger with all features of mag logger.
Example
You can find sample in example folder of this repository.