🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

eazy-logger

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eazy-logger

Simple cli logger

latest
Source
npmnpm
Version
4.1.0
Version published
Weekly downloads
815K
-4%
Maintainers
1
Weekly downloads
 
Created
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

plugins

FAQs

Package last updated on 02 Apr 2025

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