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.