From 872bc791c7c12614664b611eafdb7e211d44e291 Mon Sep 17 00:00:00 2001 From: Mike Bardzinski Date: Wed, 2 May 2012 16:10:20 +0100 Subject: [PATCH] Fixes the log4js.configure({}) issue which zapped all loggers' levels to TRACE, even if they were previously set to something else --- lib/log4js.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/log4js.js b/lib/log4js.js index fbf929c..a7cc168 100644 --- a/lib/log4js.js +++ b/lib/log4js.js @@ -201,7 +201,7 @@ function Logger (name, level) { util.inherits(Logger, events.EventEmitter); Logger.prototype.setLevel = function(level) { - this.level = levels.toLevel(level, levels.TRACE); + this.level = levels.toLevel(level, this.level || levels.TRACE); }; Logger.prototype.removeLevel = function() {