console-log-level
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -6,2 +6,3 @@ 'use strict' | ||
var levels = ['trace', 'debug', 'info', 'warn', 'error', 'fatal'] | ||
var noop = function () {} | ||
@@ -19,5 +20,5 @@ module.exports = function (opts) { | ||
levels.forEach(function (level) { | ||
logger[level] = function () { | ||
if (!shouldLog(level)) return | ||
logger[level] = shouldLog(level) ? log : noop | ||
function log () { | ||
var prefix = opts.prefix | ||
@@ -24,0 +25,0 @@ var normalizedLevel |
{ | ||
"name": "console-log-level", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "The most simple logger imaginable", | ||
@@ -34,5 +34,5 @@ "main": "index.js", | ||
"coordinates": [ | ||
55.6665764, | ||
12.5798836 | ||
60.2016461, | ||
24.9573858 | ||
] | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9509
184