Add Log.trace/debug/error functions

This commit is contained in:
Nick O'Leary 2015-02-05 17:05:39 +00:00
parent 26c42e500f
commit 3ef6f29d6e
1 changed files with 10 additions and 0 deletions

View File

@ -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;