Skip to content

mahnunchik/mag-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mag-examples

Mag is the streaming logger for NodeJS

Examples

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)

How to run example?

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

License

MIT

About

Examples of using mag logger

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published