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

eazy-logger

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eazy-logger - npm Package Compare versions

Comparing version 1.3.3 to 1.4.0

45

example.js

@@ -1,40 +0,17 @@

/**
*
* Run `node example.js` to see the output of these examples
*
*/
var logger = require("./index").Logger({
prefix: "{blue:[}{cyan:BS}{blue:] }"
}).setLevelPrefixes(true).setLevel("debug");
var EasyLogger = require("./index").Logger;
/**
* Standard loggers
*/
logger.debug("Debugging Msg");
logger.info("Info statement");
logger.warn("A little warning");
logger.error("an error occurred!");
var logger = new EasyLogger({
prefix: function () {
var date = new Date();
return this.compile("{magenta:["+date+"] ");
}
});
/**
*
*/
logger.setLevelPrefixes(false);
logger.setLevelPrefixes(true).log("info", "Hello");
/**
*
*/
logger.log("error", "Use {green:%s} %s", "String substitution", "is cool");
logger.info("is cool");
/**
* Without level prefixes
*/
logger.log("info", "No LEVEL prefix here");
/**
* Un-prefixed
*/
logger.unprefixed("info", "NO PREFIX");
var clone = logger.clone(function (config) {
return config;
});

@@ -187,2 +187,5 @@ /**

}
if (_.isFunction(prefix)) {
this.compiler.prefix = prefix;
}
};

@@ -189,0 +192,0 @@

{
"name": "eazy-logger",
"description": "Simple cli logger",
"version": "1.3.3",
"version": "1.4.0",
"homepage": "https://github.com/shakyshane/easy-logger",

@@ -33,3 +33,3 @@ "author": {

"opt-merger": "^0.2.1",
"tfunk": "^2.0.2"
"tfunk": "^2.1.0"
},

@@ -36,0 +36,0 @@ "devDependencies": {

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