Mag is the streaming logger for NodeJS
This repository contains examples of using mag logger.
You can find them in the following branches:
- simple - simplest replacement of console
- module - module using mag as logger
- app - example of application that uses the module above
- app-formatted-output - mag-hub, log levels, and collored output (full example of mag power)
To run each of examples, do the following:
$ git checkout %example%
$ make
$ npm start
Where %example%
is one of the following: simple
, module
, app
, app-formatted-output
.
Invocation of make
does clean installation of dependencies:
rm -rf ./node_modules
npm install --production
MIT