Socket
Socket
Sign inDemoInstall

mufasa-client

Package Overview
Dependencies
15
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mufasa-client

Client for Mufasa Server


Version published
Weekly downloads
21
decreased by-56.25%
Maintainers
1
Install size
522 kB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 12 Oct 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc