Skip to content

mahnunchik/mag-morgan

Repository files navigation

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.

License

MIT

About

morgan adapted for use with mag logger

Resources

License

Stars

Watchers

Forks

Packages

No packages published