@abtnode/logger
Advanced tools
Comparing version 1.0.16 to 1.0.17-alpha.23
@@ -68,3 +68,2 @@ const fs = require('fs-extra'); | ||
const logger = createLogger({ | ||
level: process.env.ABT_NODE_LOG_LEVEL || 'info', | ||
format: format.combine( | ||
@@ -80,2 +79,3 @@ format.timestamp({ format: 'YYYY-MM-DD HH:mm:ss' }), | ||
if (process.env.NODE_ENV === 'production') { | ||
logger.level = process.env.ABT_NODE_LOG_LEVEL || 'info'; | ||
if (!fs.existsSync(baseDirectory)) { | ||
@@ -117,2 +117,3 @@ fs.mkdirSync(baseDirectory, { recursive: true }); | ||
} else { | ||
logger.level = process.env.ABT_NODE_LOG_LEVEL || 'debug'; | ||
const transport = new transports.Console(); | ||
@@ -119,0 +120,0 @@ |
{ | ||
"name": "@abtnode/logger", | ||
"version": "1.0.16", | ||
"version": "1.0.17-alpha.23+742d667b", | ||
"description": "ABT Node logger lib", | ||
@@ -46,3 +46,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "e211a00e13e0e7b2e7ffd75b9e3864bdc79c90ac" | ||
"gitHead": "742d667b2cebe9c74c39e0f6586ef4be09ed8b6b" | ||
} |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
5929
136
22
42
227
2
6
1
2