@applitools/logger
Advanced tools
Comparing version 1.1.42 to 1.1.43
@@ -37,9 +37,4 @@ "use strict"; | ||
var _a, _b; | ||
if (process.env.DEBUG) { | ||
handler = { type: 'debug', label }; | ||
level = log_level_1.LogLevel.all; | ||
label = null; | ||
timestamp = false; | ||
} | ||
else if (!handler) { | ||
let forceInitHandler; | ||
if (!handler) { | ||
if (process.env.APPLITOOLS_LOG_FILE) { | ||
@@ -51,2 +46,12 @@ handler = { type: 'file', filename: process.env.APPLITOOLS_LOG_FILE }; | ||
} | ||
else if (process.env.APPLITOOLS_SHOW_LOGS === 'true') { | ||
handler = { type: 'console' }; | ||
} | ||
else if (process.env.DEBUG) { | ||
handler = { type: 'debug', label }; | ||
level = log_level_1.LogLevel.all; | ||
label = null; | ||
timestamp = false; | ||
forceInitHandler = true; | ||
} | ||
else { | ||
@@ -121,3 +126,3 @@ handler = { type: 'console' }; | ||
...options, | ||
handler, | ||
handler: forceInitHandler ? undefined : handler, | ||
extended: true, | ||
@@ -124,0 +129,0 @@ }); |
{ | ||
"name": "@applitools/logger", | ||
"version": "1.1.42", | ||
"version": "1.1.43", | ||
"description": "Applitools logger", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
43788
625
13