@gigafied/log
Advanced tools
Comparing version 0.2.0 to 0.3.0
10
index.js
@@ -7,3 +7,3 @@ (function (root) { | ||
var namespaces = { | ||
default: 3 | ||
default: process.env.LOG_LEVEL || 3 | ||
} | ||
@@ -35,3 +35,3 @@ | ||
} | ||
var theme = 'light' | ||
var theme = process.env.LOG_THEME || 'light' | ||
var isMuted = false | ||
@@ -48,3 +48,3 @@ var doLogTimes = true | ||
var activeLevel = namespaces[namespace] | ||
if (typeof activeLevel == 'undefined') activeLevel = namespaces.default | ||
if (typeof activeLevel === 'undefined') activeLevel = namespaces.default | ||
if (activeLevel >= level) return true | ||
@@ -130,4 +130,3 @@ return false | ||
theme = val | ||
} | ||
else { | ||
} else { | ||
themes.custom = val | ||
@@ -177,2 +176,1 @@ theme = 'custom' | ||
})(typeof global !== 'undefined' ? global : window || this) | ||
{ | ||
"name": "@gigafied/log", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Browser Logging", |
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
5596
153