@coast/logger
Advanced tools
Comparing version 1.0.4 to 1.1.0
@@ -21,9 +21,13 @@ "use strict"; | ||
level = 'INFO'; | ||
} // default console config (stdout) | ||
} // allow overriding the stdout log formatting | ||
// available options: short|long|simple|json|bunyan | ||
// https://www.npmjs.com/package/bunyan-format | ||
var outputMode = process.env.LOG_FORMAT || 'short'; // default console config (stdout) | ||
var streams = [{ | ||
level: level, | ||
stream: (0, _bunyanFormat["default"])({ | ||
outputMode: 'short' | ||
outputMode: outputMode | ||
}) | ||
@@ -30,0 +34,0 @@ }]; // create default logger instance |
{ | ||
"name": "@coast/logger", | ||
"version": "1.0.4", | ||
"version": "1.1.0", | ||
"description": "A Node/browser application logger", | ||
@@ -5,0 +5,0 @@ "main": "./dist/main.js", |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
7485
29
3