@elastic.io/bunyan-logger
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -5,9 +5,8 @@ 'use strict'; | ||
const appName = process.env.APP_NAME || 'app'; | ||
let level; | ||
let defaultLevel = 'info'; | ||
if (process.env.NODE_ENV === 'test') { | ||
level = bunyan.FATAL + 1; //turn off logging | ||
} else { | ||
level = process.env.LOG_LEVEL || 'info'; | ||
defaultLevel = bunyan.FATAL + 1; //turn off logging | ||
} | ||
const level = process.env.LOG_LEVEL || defaultLevel; | ||
@@ -14,0 +13,0 @@ const log = bunyan.createLogger({ |
{ | ||
"name": "@elastic.io/bunyan-logger", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Logger for elastic.io platform based on Bunyan", | ||
@@ -5,0 +5,0 @@ "main": "lib/logger.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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
16180
13
21
1