Add .trace and .debug to Node prototype

This commit is contained in:
Nick O'Leary 2017-04-10 15:32:40 +01:00
parent b2390f1caf
commit 73dfe631ce
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 8 additions and 0 deletions

View File

@ -246,6 +246,14 @@ Node.prototype.error = function(logMessage,msg) {
}
};
Node.prototype.debug = function(msg) {
log_helper(this, Log.DEBUG, msg);
}
Node.prototype.trace = function(msg) {
log_helper(this, Log.TRACE, msg);
}
/**
* If called with no args, returns whether metric collection is enabled
*/