opennms
Version:
Client API for the OpenNMS network monitoring platform
1 lines • 5.73 kB
JSON
{"remainingRequest":"/data/node_modules/babel-loader/lib/index.js!/data/node_modules/typescript-logging/dist/commonjs/log/standard/MessageBufferLoggerImpl.js","dependencies":[{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/standard/MessageBufferLoggerImpl.js","mtime":1553611388004},{"path":"/data/.babelrc","mtime":1553611371556},{"path":"/data/node_modules/cache-loader/dist/cjs.js","mtime":1553611387012},{"path":"/data/node_modules/babel-loader/lib/index.js","mtime":1553611386992}],"contextDependencies":[],"result":["\"use strict\";\n\nvar __extends = undefined && undefined.__extends || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar AbstractLogger_1 = require(\"./AbstractLogger\");\n/**\n * Logger which buffers all messages, use with care due to possible high memory footprint.\n * Can be convenient in some cases. Call toString() for full output, or cast to this class\n * and call getMessages() to do something with it yourself.\n */\nvar MessageBufferLoggerImpl = function (_super) {\n __extends(MessageBufferLoggerImpl, _super);\n function MessageBufferLoggerImpl(name, logGroupRuntimeSettings) {\n var _this = _super.call(this, name, logGroupRuntimeSettings) || this;\n _this.messages = [];\n return _this;\n }\n MessageBufferLoggerImpl.prototype.close = function () {\n this.messages = [];\n _super.prototype.close.call(this);\n };\n MessageBufferLoggerImpl.prototype.getMessages = function () {\n return this.messages;\n };\n MessageBufferLoggerImpl.prototype.toString = function () {\n return this.messages.map(function (msg) {\n return msg;\n }).join(\"\\n\");\n };\n MessageBufferLoggerImpl.prototype.doLog = function (message) {\n this.messages.push(this.createDefaultLogMessage(message));\n };\n return MessageBufferLoggerImpl;\n}(AbstractLogger_1.AbstractLogger);\nexports.MessageBufferLoggerImpl = MessageBufferLoggerImpl;\n//# sourceMappingURL=MessageBufferLoggerImpl.js.map",{"version":3,"sources":["node_modules/typescript-logging/dist/commonjs/log/standard/MessageBufferLoggerImpl.js"],"names":["__extends","d","b","p","hasOwnProperty","__","constructor","prototype","Object","create","AbstractLogger_1","require","MessageBufferLoggerImpl","_super","name","logGroupRuntimeSettings","_this","call","messages","close","getMessages","toString","map","msg","join","doLog","message","push","createDefaultLogMessage","AbstractLogger","exports"],"mappings":"AAAA;;AACA,IAAIA,YAAa,aAAQ,UAAKA,SAAd,IAA4B,UAAUC,CAAV,EAAaC,CAAb,EAAgB;AACxD,SAAK,IAAIC,CAAT,IAAcD,CAAd;AAAiB,YAAIA,EAAEE,cAAF,CAAiBD,CAAjB,CAAJ,EAAyBF,EAAEE,CAAF,IAAOD,EAAEC,CAAF,CAAP;AAA1C,KACA,SAASE,EAAT,GAAc;AAAE,aAAKC,WAAL,GAAmBL,CAAnB;AAAuB;AACvCA,MAAEM,SAAF,GAAcL,MAAM,IAAN,GAAaM,OAAOC,MAAP,CAAcP,CAAd,CAAb,IAAiCG,GAAGE,SAAH,GAAeL,EAAEK,SAAjB,EAA4B,IAAIF,EAAJ,EAA7D,CAAd;AACH,CAJD;AAKA,IAAIK,mBAAmBC,QAAQ,kBAAR,CAAvB;AACA;;;;;AAKA,IAAIC,0BAA2B,UAAUC,MAAV,EAAkB;AAC7Cb,cAAUY,uBAAV,EAAmCC,MAAnC;AACA,aAASD,uBAAT,CAAiCE,IAAjC,EAAuCC,uBAAvC,EAAgE;AAC5D,YAAIC,QAAQH,OAAOI,IAAP,CAAY,IAAZ,EAAkBH,IAAlB,EAAwBC,uBAAxB,KAAoD,IAAhE;AACAC,cAAME,QAAN,GAAiB,EAAjB;AACA,eAAOF,KAAP;AACH;AACDJ,4BAAwBL,SAAxB,CAAkCY,KAAlC,GAA0C,YAAY;AAClD,aAAKD,QAAL,GAAgB,EAAhB;AACAL,eAAON,SAAP,CAAiBY,KAAjB,CAAuBF,IAAvB,CAA4B,IAA5B;AACH,KAHD;AAIAL,4BAAwBL,SAAxB,CAAkCa,WAAlC,GAAgD,YAAY;AACxD,eAAO,KAAKF,QAAZ;AACH,KAFD;AAGAN,4BAAwBL,SAAxB,CAAkCc,QAAlC,GAA6C,YAAY;AACrD,eAAO,KAAKH,QAAL,CAAcI,GAAd,CAAkB,UAAUC,GAAV,EAAe;AACpC,mBAAOA,GAAP;AACH,SAFM,EAEJC,IAFI,CAEC,IAFD,CAAP;AAGH,KAJD;AAKAZ,4BAAwBL,SAAxB,CAAkCkB,KAAlC,GAA0C,UAAUC,OAAV,EAAmB;AACzD,aAAKR,QAAL,CAAcS,IAAd,CAAmB,KAAKC,uBAAL,CAA6BF,OAA7B,CAAnB;AACH,KAFD;AAGA,WAAOd,uBAAP;AACH,CAvB8B,CAuB7BF,iBAAiBmB,cAvBY,CAA/B;AAwBAC,QAAQlB,uBAAR,GAAkCA,uBAAlC;AACA","file":"MessageBufferLoggerImpl.js","sourceRoot":"/data","sourcesContent":["\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar AbstractLogger_1 = require(\"./AbstractLogger\");\n/**\n * Logger which buffers all messages, use with care due to possible high memory footprint.\n * Can be convenient in some cases. Call toString() for full output, or cast to this class\n * and call getMessages() to do something with it yourself.\n */\nvar MessageBufferLoggerImpl = (function (_super) {\n __extends(MessageBufferLoggerImpl, _super);\n function MessageBufferLoggerImpl(name, logGroupRuntimeSettings) {\n var _this = _super.call(this, name, logGroupRuntimeSettings) || this;\n _this.messages = [];\n return _this;\n }\n MessageBufferLoggerImpl.prototype.close = function () {\n this.messages = [];\n _super.prototype.close.call(this);\n };\n MessageBufferLoggerImpl.prototype.getMessages = function () {\n return this.messages;\n };\n MessageBufferLoggerImpl.prototype.toString = function () {\n return this.messages.map(function (msg) {\n return msg;\n }).join(\"\\n\");\n };\n MessageBufferLoggerImpl.prototype.doLog = function (message) {\n this.messages.push(this.createDefaultLogMessage(message));\n };\n return MessageBufferLoggerImpl;\n}(AbstractLogger_1.AbstractLogger));\nexports.MessageBufferLoggerImpl = MessageBufferLoggerImpl;\n//# sourceMappingURL=MessageBufferLoggerImpl.js.map"]}]}