Comparing version 1.0.0 to 1.1.0
@@ -0,1 +1,5 @@ | ||
# 1.1.0 | ||
* Adding the actual error to logging meta data. | ||
# 1.0.0 | ||
@@ -2,0 +6,0 @@ |
@@ -373,3 +373,3 @@ "use strict"; | ||
*/ | ||
getLogEvent: function getLogEvent(level, message) { | ||
getLogEvent: function getLogEvent(level, message, rawMessage) { | ||
return { | ||
@@ -384,3 +384,4 @@ hostname: os.hostname(), | ||
timeStamp: new Date(), | ||
name: this.fullName | ||
name: this.fullName, | ||
rawMessage: rawMessage | ||
}; | ||
@@ -398,3 +399,5 @@ }, | ||
log: function log(level, message) { | ||
var rawMessage = message; | ||
level = Level.toLevel(level); | ||
if (this.hasLevelGt(level)) { | ||
@@ -415,3 +418,3 @@ var args = argsToArray(arguments, 1); | ||
var type = level.name.toLowerCase(), appenders = this.__appenders; | ||
var event = this.getLogEvent(level, message); | ||
var event = this.getLogEvent(level, message, rawMessage); | ||
Object.keys(appenders).forEach(function (i) { | ||
@@ -743,3 +746,1 @@ appenders[i].append(event); | ||
exports.logger.rootLogger = rootLogger; | ||
{ | ||
"name": "comb", | ||
"description": "A framework for node", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "OO", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1735091
12311
0