Skip to content
Browse files

Merge pull request #2 from NetDevLtd/feature/configureNoLevels

Fixed log4js.configure() issue setting loggers' levels to TRACE...
  • Loading branch information...
2 parents 2d0bf0b + 872bc79 commit dcf292ee1f150ed254de15bd8381d402308b9e54 Mike Bardzinski committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/log4js.js
View
2 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() {

0 comments on commit dcf292e

Please sign in to comment.
Something went wrong with that request. Please try again.