@spinajs/internal-logger
Advanced tools
Comparing version 1.2.14 to 1.2.15
@@ -42,5 +42,7 @@ "use strict"; | ||
}; | ||
// when log system is resolved | ||
// We must wait for configuration to load | ||
// becouse log is dependent on it | ||
// when configuration system is resolved | ||
// write all buffered messages to it | ||
if (di_1.DI.has("Logger")) { | ||
if (di_1.DI.has("Configuration")) { | ||
// if we botstrapped before logger | ||
@@ -51,3 +53,3 @@ write(); | ||
// if not wait for event to occur | ||
di_1.DI.once("di.resolved.Logger", () => write()); | ||
di_1.DI.once("di.resolved.Configuration", () => write()); | ||
} | ||
@@ -83,3 +85,3 @@ } | ||
// when we have log system working, write directly to it | ||
if (di_1.DI.has("logger")) { | ||
if (di_1.DI.has("Configuration")) { | ||
const logger = di_1.DI.resolve("__log__", [logName]); | ||
@@ -86,0 +88,0 @@ if (logger) { |
{ | ||
"name": "@spinajs/internal-logger", | ||
"version": "1.2.14", | ||
"version": "1.2.15", | ||
"description": "internal logger used by some packages. do not use it in production environment", | ||
@@ -37,3 +37,3 @@ "homepage": "https://github.com/spinajs/main#readme", | ||
}, | ||
"gitHead": "cd486feec1f81b84cc3646fc2dc1776be2b83fcb" | ||
"gitHead": "83081e1b5369c606eed8d3ce622bdef785bb6d06" | ||
} |
Sorry, the diff of this file is not supported yet
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
14637
222