Comparing version 0.2.2 to 0.3.0
@@ -46,3 +46,5 @@ /** | ||
if (!LOGGERS[ns]) { | ||
LOGGERS[ns] = new Logger(ns); | ||
// If the singleton root logger was created by a different version of the | ||
// package use its constructor instead of the instance from this package. | ||
LOGGERS[ns] = new rootLogger.constructor(ns); | ||
LOGGERS[ns].setParent(getLogger(getParentNs(ns))); | ||
@@ -102,3 +104,3 @@ LOGGERS_AR.push(LOGGERS[ns]); | ||
if (!isRoot) { | ||
throw new Error('This instance is not the main one. Another package uses a' + | ||
console.warn('This instance is not the main one. Another package uses a' + | ||
' different version of "node-logg" and holds the actual reference to' + | ||
@@ -121,5 +123,6 @@ ' the console watcher'); | ||
if (!isRoot) { | ||
throw new Error('This instance is not the main one. Another package uses a' + | ||
console.warn('This instance is not the main one. Another package uses a' + | ||
' different version of "node-logg" and holds the actual reference to' + | ||
' the console watcher'); | ||
return; | ||
} | ||
@@ -126,0 +129,0 @@ if (isConsoleRegistered) { |
{ | ||
"name" : "logg", | ||
"version" : "0.2.2", | ||
"version" : "0.3.0", | ||
"description" : "Logging library that allows for hierarchical loggers, multiple log levels, and flexible watching of log records.", | ||
@@ -5,0 +5,0 @@ "keywords" : ["log", "logging", "logger", "hierarchical", "handler", "watcher"], |
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
25594
567