mufasa-client
v1.0.7
Published
Client for Mufasa Server
Downloads
89
Maintainers
Readme
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);