@coya/logs
Advanced tools
Comparing version 0.0.4 to 0.0.5
10
logs.js
@@ -28,3 +28,3 @@ const fs = require('fs'); | ||
if(config.executionMode) { | ||
if(config.executionMode !== undefined) { | ||
if(config.executionMode == PROD_MODE || config.executionMode == 'prod') | ||
@@ -60,6 +60,6 @@ this.executionMode = PROD_MODE; | ||
this.error = (this.executionMode === PROD_MODE && logsFilePath) ? errorProd : errorDev; | ||
this.warning = (this.executionMode === PROD_MODE && logsFilePath) ? warningProd : warningDev; | ||
this.notice = (this.executionMode === PROD_MODE && logsFilePath) ? noticeProd : noticeDev; | ||
this.info = (this.executionMode === PROD_MODE && logsFilePath) ? infoProd : infoDev; | ||
this.error = (this.executionMode === PROD_MODE && this.logsFilePath) ? errorProd : errorDev; | ||
this.warning = (this.executionMode === PROD_MODE && this.logsFilePath) ? warningProd : warningDev; | ||
this.notice = (this.executionMode === PROD_MODE && this.logsFilePath) ? noticeProd : noticeDev; | ||
this.info = (this.executionMode === PROD_MODE && this.logsFilePath) ? infoProd : infoDev; | ||
this.debug = (this.executionMode === DEBUG_MODE) ? debugDebug : debugDevOrProd; | ||
@@ -66,0 +66,0 @@ |
{ | ||
"name": "@coya/logs", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Logs service", | ||
@@ -5,0 +5,0 @@ "main": "logs.js", |
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
4339