diff --git a/README.md b/README.md index e5894b175..e6ec99fb1 100644 --- a/README.md +++ b/README.md @@ -667,6 +667,7 @@ The Console transport takes a few simple options: * __depth__ Numeric indicating how many times to recurse while formatting the object with `util.inspect` (only used with `prettyPrint: true`) (default null, unlimited) * __showLevel:__ Boolean flag indicating if we should prepend output with level (default true). * __formatter:__ If function is specified, its return value will be used instead of default output. (default undefined) +* __debugStdout:__ Boolean flag indicating if 'debug'-level output should be redirected to stdout instead of to stderr. (default false) *Metadata:* Logged via util.inspect(meta); diff --git a/lib/winston/transports/console.js b/lib/winston/transports/console.js index d6bbd00ec..10d6aae65 100644 --- a/lib/winston/transports/console.js +++ b/lib/winston/transports/console.js @@ -80,7 +80,8 @@ Console.prototype.log = function (level, msg, meta, callback) { logstash: this.logstash, depth: this.depth, formatter: this.formatter, - humanReadableUnhandledException: this.humanReadableUnhandledException + humanReadableUnhandledException: this.humanReadableUnhandledException, + showLevel: this.showLevel }); if (level === 'error' || (level === 'debug' && !this.debugStdout) ) {