From 229d6949ad18a2fbdd7b88537f4ac029a670b89d Mon Sep 17 00:00:00 2001 From: Christophe Hurpeau Date: Sun, 10 May 2015 17:19:21 +0200 Subject: [PATCH] Add the logger (this) in the fourth argument in the rewriters function --- lib/winston/logger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/winston/logger.js b/lib/winston/logger.js index 936a13b8f..0a1e39915 100755 --- a/lib/winston/logger.js +++ b/lib/winston/logger.js @@ -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) {