1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

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

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