UNPKG

microgateway-plugins

Version:
23 lines (22 loc) 810 B
/* simulating the objects of microgateway-core to avoid run time errors in travis. */ module.exports = { logger: { debug: function (obj, msg) { }, trace: function (obj, msg) { }, info: function (obj, msg) { }, warn: function (obj, msg) { }, error: function (obj, msg) {}, eventLog: function (obj, msg) {}, stats: function (statsInfo, msg) {}, setLevel: function (level) {}, writeLogRecord: function(record,cb) {}, consoleLog: function (level, ...data) {} }, stats: { incrementRequestCount: function() {}, incrementResponseCount: function() {}, incrementRequestErrorCount: function() {}, incrementResponseErrorCoun: function() {}, incrementStatusCount: function(code) {} } }