Socket
Socket
Sign inDemoInstall

eazy-logger

Package Overview
Dependencies
1
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

eazy-logger


Version published
Weekly downloads
497K
decreased by-27.87%
Maintainers
1
Install size
190 kB
Created
Weekly downloads
 

Readme

Source

##eazy-logger Build Status Coverage Status

tFunk + String Substitution

preview

##Install

$ npm install eazy-logger --save

##Usage

var logger  = require("eazy-logger").Logger({
    prefix: "{blue:[}{magenta:easy-logger}{blue:] }",
    useLevelPrefixes: true
});
/**
 * Standard loggers + prefixes
 */
logger.debug("Debugging Msg");
logger.info("Info statement");
logger.warn("A little warning with string %s", "substitution");
logger.error("an error occurred in file: {red:%s}", "/users/awesomedev/file.js");
/**
 * Use string substitution + colours
 */
logger.log("error", "Use {green:built-in} %s", "String substitution");
/**
 * Set an option for the next log statement only
 */
logger.setOnce("useLevelPrefixes", true).warn("Use {green:built-in} %s", "String substitution");

Keywords

FAQs

Last updated on 04 Mar 2023

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc