1.0.7 • Published 6 years ago

mufasa-client v1.0.7

Weekly downloads
19
License
ISC
Repository
github
Last release
6 years ago

Mufasa Logger by Jesús Wallidh Gaona Sosa

To start with this logger use the following code:

In your entry file use:

mufasa = require('mufasa');

This will start the instance globally

In any other file where you want to include any log output

mufasa.log(, );

Example:

mufasa.log(mufasa.levels.DEBUG, 'A debug line');

You can also capture exceptions from your try catch block

mufasa.log(, , , );

And ex is

{ , }

Example:

const ex = {message : 'An error occured while doing something.', stack: 'On C:/somefiles...\n/test.js'} mufasa.log(mufasa.levels.ERR, 'A test was triggered', mufasa.newInstace(), ex);

You can also have control for your requests on multiple threads if your system is based on http requests

Check demo project for Examples.