mufasa-client

1.0.7 • Public • Published

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.

Package Sidebar

Install

npm i mufasa-client

Weekly Downloads

48

Version

1.0.7

License

ISC

Unpacked Size

11.4 kB

Total Files

9

Last publish

Collaborators

  • jgaona