mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Add Log.trace/debug/error functions
This commit is contained in:
parent
26c42e500f
commit
3ef6f29d6e
10
red/log.js
10
red/log.js
@ -96,6 +96,16 @@ var log = module.exports = {
|
||||
warn: function(msg) {
|
||||
log.log({level:log.WARN,msg:msg});
|
||||
},
|
||||
error: function(msg) {
|
||||
log.log({level:log.ERROR,msg:msg});
|
||||
},
|
||||
trace: function(msg) {
|
||||
log.log({level:log.TRACE,msg:msg});
|
||||
},
|
||||
debug: function(msg) {
|
||||
log.log({level:log.DEBUG,msg:msg});
|
||||
},
|
||||
|
||||
|
||||
metric: function() {
|
||||
return metricsEnabled;
|
||||
|
Loading…
Reference in New Issue
Block a user