Skip to content

Commit

Permalink
Add the logger (this} in the fourth argument in the rewriters function
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau committed May 10, 2015
1 parent 22a5f5a commit 585160c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/winston/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ Logger.prototype.log = function (level) {
}

this.rewriters.forEach(function (rewriter) {
meta = rewriter(level, msg, meta);
meta = rewriter(level, msg, meta, self);
});

this.filters.forEach(function(filter) {
Expand Down

0 comments on commit 585160c

Please sign in to comment.