Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ric-utils-logger

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ric-utils-logger

Console logger utility

  • 1.0.9
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-71.43%
Maintainers
1
Weekly downloads
 
Created
Source

ric-utils-logger

build status

Install

npm i --save-dev ric-utils-logger
npm shrinkwrap

Basic usage

const logger = require('ric-utils-logger')

logger.warn('warn message');

logger.info('info message');
logger.info({a: 1, b: 2});

logger.error('error message');
logger.error(new Error('error'));

Log level

setLogLevel(level : number|string );


logger.setLogLevel(0); // [none]  silent mode ()
logger.setLogLevel(1); // [error] logs only error messages
logger.setLogLevel(2); // [warn]  logs errors and warns
logger.setLogLevel(3); // [info]  logs errors, warns and information messages
logger.setLogLevel(4); // [debug] logs all messages

FAQs

Package last updated on 02 Sep 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc