Comparing version 3.13.1 to 3.14.0
@@ -52,2 +52,3 @@ /* eslint-disable no-console */ | ||
_this.eol = typeof options.eol === 'string' ? options.eol : os.EOL; | ||
_this.forceConsole = options.forceConsole || false; | ||
_this.setMaxListeners(30); | ||
@@ -74,3 +75,3 @@ return _this; | ||
if (this.stderrLevels[info[LEVEL]]) { | ||
if (console._stderr) { | ||
if (console._stderr && !this.forceConsole) { | ||
// Node.js maps `process.stderr` to `console._stderr`. | ||
@@ -87,3 +88,3 @@ console._stderr.write("".concat(info[MESSAGE]).concat(this.eol)); | ||
} else if (this.consoleWarnLevels[info[LEVEL]]) { | ||
if (console._stderr) { | ||
if (console._stderr && !this.forceConsole) { | ||
// Node.js maps `process.stderr` to `console._stderr`. | ||
@@ -101,3 +102,3 @@ // in Node.js console.warn is an alias for console.error | ||
} | ||
if (console._stdout) { | ||
if (console._stdout && !this.forceConsole) { | ||
// Node.js maps `process.stdout` to `console._stdout`. | ||
@@ -104,0 +105,0 @@ console._stdout.write("".concat(info[MESSAGE]).concat(this.eol)); |
@@ -451,5 +451,3 @@ /* eslint-disable complexity,max-statements */ | ||
_this5.once('open', function () { | ||
if (_this5._stream.eventNames().includes('rotate')) { | ||
_this5._stream.emit('rotate'); | ||
} else { | ||
if (!_this5._stream.emit('rotate')) { | ||
_this5._rotate = false; | ||
@@ -456,0 +454,0 @@ } |
@@ -34,2 +34,3 @@ /* eslint-disable no-console */ | ||
this.eol = (typeof options.eol === 'string') ? options.eol : os.EOL; | ||
this.forceConsole = options.forceConsole || false; | ||
@@ -50,3 +51,3 @@ this.setMaxListeners(30); | ||
if (this.stderrLevels[info[LEVEL]]) { | ||
if (console._stderr) { | ||
if (console._stderr && !this.forceConsole) { | ||
// Node.js maps `process.stderr` to `console._stderr`. | ||
@@ -64,3 +65,3 @@ console._stderr.write(`${info[MESSAGE]}${this.eol}`); | ||
} else if (this.consoleWarnLevels[info[LEVEL]]) { | ||
if (console._stderr) { | ||
if (console._stderr && !this.forceConsole) { | ||
// Node.js maps `process.stderr` to `console._stderr`. | ||
@@ -80,3 +81,3 @@ // in Node.js console.warn is an alias for console.error | ||
if (console._stdout) { | ||
if (console._stdout && !this.forceConsole) { | ||
// Node.js maps `process.stdout` to `console._stdout`. | ||
@@ -83,0 +84,0 @@ console._stdout.write(`${info[MESSAGE]}${this.eol}`); |
@@ -442,5 +442,3 @@ /* eslint-disable complexity,max-statements */ | ||
this.once('open', () => { | ||
if (this._stream.eventNames().includes('rotate')) { | ||
this._stream.emit('rotate'); | ||
} else { | ||
if (!this._stream.emit('rotate')) { | ||
this._rotate = false; | ||
@@ -447,0 +445,0 @@ } |
{ | ||
"name": "winston", | ||
"description": "A logger for just about everything.", | ||
"version": "3.13.1", | ||
"version": "3.14.0", | ||
"author": "Charlie Robbins <charlie.robbins@gmail.com>", | ||
@@ -6,0 +6,0 @@ "maintainers": [ |
@@ -690,3 +690,3 @@ # winston | ||
winston.format.json(), | ||
winston.format.colorize({ all }) | ||
winston.format.colorize({ all: true }) | ||
); | ||
@@ -693,0 +693,0 @@ ``` |
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
269299
6424