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

@kofile/log

Package Overview
Dependencies
Maintainers
12
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kofile/log - npm Package Compare versions

Comparing version 4.1.1 to 4.2.0

3

adapters/index.js
module.exports = {
Console: require('./Console')
Console: require('./Console'),
Noop: require('./Noop')
}

@@ -155,3 +155,7 @@ const util = require('util')

this._adapter = params.adapter || new Adapters.Console(console)
if (typeof process !== 'undefined' && process.env.SILENCE_LOG) {
this._adapter = new Adapters.Noop()
} else {
this._adapter = params.adapter || new Adapters.Console(console)
}

@@ -158,0 +162,0 @@ this._formatError = formatErrorProxy(formatMessageFor(klass.LEVELS.ERROR))

@@ -1,1 +0,1 @@

{"name":"@kofile/log","version":"4.1.1","description":"Node log wrapper","author":"Evan Sherwood <evan@sherwood.io>","license":"MIT","main":"index.js","files":["index.js","Log.js","adapters/Console/index.js","adapters/Adapter.js","adapters/index.js"],"devDependencies":{"ava":"^0.22.0","commitizen":"^2.9.6","coveralls":"^2.13.1","cz-cli":"^1.0.0","cz-conventional-changelog":"^2.0.0","husky":"^0.13.4","lint-staged":"^3.6.0","nyc":"^11.1.0","prettier-standard":"^6.0.0","semantic-release":"^8.2.0","sinon":"^4.0.1","snazzy":"^7.0.0","standard":"^10.0.3"},"lint-staged":{"*.js":["prettier-standard","git add"]},"scripts":{"precommit":"lint-staged","commit":"git-cz","lint":"standard | snazzy","test":"nyc ava","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"nyc":{"include":["index.js","Log.js","adapters/Console/index.js","adapters/Adapter.js","adapters/index.js"]},"repository":{"type":"git","url":"https://github.com/kofile/log.git"},"dependencies":{"@kofile/timer":"^1.0.1","chalk":"^2.3.0","prettyoutput":"https://github.com/neezer/prettyoutput#87f9b2785151e5b4114147b1252af77ca21bcbf0"}}
{"name":"@kofile/log","version":"4.2.0","description":"Node log wrapper","author":"Evan Sherwood <evan@sherwood.io>","license":"MIT","main":"index.js","files":["index.js","Log.js","adapters/Console/index.js","adapters/Adapter.js","adapters/index.js"],"devDependencies":{"ava":"^0.22.0","commitizen":"^2.9.6","coveralls":"^2.13.1","cz-cli":"^1.0.0","cz-conventional-changelog":"^2.0.0","husky":"^0.13.4","lint-staged":"^3.6.0","nyc":"^11.1.0","prettier-standard":"^6.0.0","semantic-release":"^8.2.0","sinon":"^4.0.1","snazzy":"^7.0.0","standard":"^10.0.3"},"lint-staged":{"*.js":["prettier-standard","git add"]},"scripts":{"precommit":"lint-staged","commit":"git-cz","lint":"standard | snazzy","test":"nyc ava","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"nyc":{"include":["index.js","Log.js","adapters/Console/index.js","adapters/Adapter.js","adapters/index.js"]},"repository":{"type":"git","url":"https://github.com/kofile/log.git"},"dependencies":{"@kofile/timer":"^1.0.1","chalk":"^2.3.0","prettyoutput":"https://github.com/neezer/prettyoutput#87f9b2785151e5b4114147b1252af77ca21bcbf0"}}

@@ -25,2 +25,3 @@ # Log

- `console`
- `noop` (does nothing)

@@ -100,2 +101,4 @@ <a name="usage"></a>

Setting `SILENCE_LOG` to any truthy value will setup the logger to use the Noop Adapter.
<a name="log"></a>

@@ -102,0 +105,0 @@ ### Log

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