Skip to content

Commit

Permalink
Merge pull request #558 from VipSaran/master
Browse files Browse the repository at this point in the history
fix for 'showLevel' value not being used in Console transport (#557) and description of debugStdout usage for Console Transport (#556)
  • Loading branch information
indexzero committed Mar 8, 2015
2 parents 0cf1634 + 9a64a01 commit ffaf3ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
3 changes: 2 additions & 1 deletion lib/winston/transports/console.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) ) {
Expand Down

0 comments on commit ffaf3ec

Please sign in to comment.