Comparing version 2.0.0 to 2.0.1
@@ -8,2 +8,3 @@ 'use strict'; | ||
const RotateLog = require('rotatelog-stream').RotateLogStream; | ||
const bunyanPretty = require('bunyan-pretty'); | ||
@@ -52,3 +53,7 @@ /** | ||
if (!streams.length || opt.dev === true) { | ||
streams.push({ level: 'trace', stream: process.stdout }); | ||
if (process.stdout.isTTY) { | ||
streams.push({ level: 'trace', stream: bunyanPretty()}); | ||
} else { | ||
streams.push({ level: 'trace', stream: process.stdout}); | ||
} | ||
} | ||
@@ -55,0 +60,0 @@ |
{ | ||
"name": "bunlogger", | ||
"version": "2.0.0", | ||
"description": "General logger for all my projects, a better version than mint-robot/util-logger", | ||
"version": "2.0.1", | ||
"description": "bunyan logger, bunyan express middleware, pretty print err for development", | ||
"author": "Ben P.P. Tung", | ||
@@ -15,4 +15,12 @@ "license": "MIT", | ||
}, | ||
"keywords": [ | ||
"express", | ||
"bunyan", | ||
"logger", | ||
"middleware", | ||
"rotatelog" | ||
], | ||
"dependencies": { | ||
"bunyan": "^1.8.10", | ||
"bunyan-pretty": "0.0.1", | ||
"colors": "^1.1.2", | ||
@@ -19,0 +27,0 @@ "mkdirp": "^0.5.1", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
7153
137
0
7
+ Addedbunyan-pretty@0.0.1
+ Addedbunyan-pretty@0.0.1(transitive)
+ Addedthrough@2.3.8(transitive)