abstract-logger
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -178,3 +178,4 @@ (function() { | ||
var result, vAttrs; | ||
result = this.Class.name || this.constructor.name; | ||
result = this.Class || this.constructor; | ||
result = result.name; | ||
vAttrs = this._inspect(); | ||
@@ -187,2 +188,13 @@ if (vAttrs) { | ||
AbstractLogger.prototype.toObject = function() { | ||
return { | ||
level: this.level, | ||
enabled: this.enabled !== false | ||
}; | ||
}; | ||
AbstractLogger.prototype.toJSON = function() { | ||
return this.toObject(); | ||
}; | ||
return AbstractLogger; | ||
@@ -189,0 +201,0 @@ |
{ | ||
"name": "abstract-logger", | ||
"description": "It's an abstract logger.", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"homepage": "https://github.com/snowyu/abstract-logger.js", | ||
@@ -6,0 +6,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
32637
191