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

good-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

good-logger

A good logger.

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

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

good-logger

This logger ain't like any logger. It's a good logger. console.log is bad. good-logger is good. Stop using a bad logger. Stop using console.log. Please use a good logger. Please use good-logger.

  • process.env.LOGGING = false disables logging.

Example

const logger = require('good-logger');

logger.info('Use this when you want to log non-sense');
logger.warn('Use this when something wrong goes but you just don\'t want to call it an error');
logger.err('Use this when you make a grave mistake in your code');
logger.recv('Use this with things like webservers (receiving a request) or a bot (receiving a message)');
logger.sql('Use this if you use some SQL and you want to log it nicely');

Keywords

FAQs

Package last updated on 21 Sep 2018

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