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

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
*/