UNPKG

opennms

Version:

Client API for the OpenNMS network monitoring platform

1 lines 5.52 kB
{"remainingRequest":"/data/node_modules/babel-loader/lib/index.js!/data/node_modules/typescript-logging/dist/commonjs/log/category/CategoryMessageBufferImpl.js","dependencies":[{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/category/CategoryMessageBufferImpl.js","mtime":1553611388000},{"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 AbstractCategoryLogger_1 = require(\"./AbstractCategoryLogger\");\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 CategoryMessageBufferLoggerImpl = function (_super) {\n __extends(CategoryMessageBufferLoggerImpl, _super);\n function CategoryMessageBufferLoggerImpl() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.messages = [];\n return _this;\n }\n CategoryMessageBufferLoggerImpl.prototype.getMessages = function () {\n return this.messages;\n };\n CategoryMessageBufferLoggerImpl.prototype.toString = function () {\n return this.messages.map(function (msg) {\n return msg;\n }).join(\"\\n\");\n };\n CategoryMessageBufferLoggerImpl.prototype.doLog = function (msg) {\n var fullMsg = this.createDefaultLogMessage(msg);\n this.messages.push(fullMsg);\n };\n return CategoryMessageBufferLoggerImpl;\n}(AbstractCategoryLogger_1.AbstractCategoryLogger);\nexports.CategoryMessageBufferLoggerImpl = CategoryMessageBufferLoggerImpl;\n//# sourceMappingURL=CategoryMessageBufferImpl.js.map",{"version":3,"sources":["node_modules/typescript-logging/dist/commonjs/log/category/CategoryMessageBufferImpl.js"],"names":["__extends","d","b","p","hasOwnProperty","__","constructor","prototype","Object","create","AbstractCategoryLogger_1","require","CategoryMessageBufferLoggerImpl","_super","_this","apply","arguments","messages","getMessages","toString","map","msg","join","doLog","fullMsg","createDefaultLogMessage","push","AbstractCategoryLogger","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,2BAA2BC,QAAQ,0BAAR,CAA/B;AACA;;;;;AAKA,IAAIC,kCAAmC,UAAUC,MAAV,EAAkB;AACrDb,cAAUY,+BAAV,EAA2CC,MAA3C;AACA,aAASD,+BAAT,GAA2C;AACvC,YAAIE,QAAQD,WAAW,IAAX,IAAmBA,OAAOE,KAAP,CAAa,IAAb,EAAmBC,SAAnB,CAAnB,IAAoD,IAAhE;AACAF,cAAMG,QAAN,GAAiB,EAAjB;AACA,eAAOH,KAAP;AACH;AACDF,oCAAgCL,SAAhC,CAA0CW,WAA1C,GAAwD,YAAY;AAChE,eAAO,KAAKD,QAAZ;AACH,KAFD;AAGAL,oCAAgCL,SAAhC,CAA0CY,QAA1C,GAAqD,YAAY;AAC7D,eAAO,KAAKF,QAAL,CAAcG,GAAd,CAAkB,UAAUC,GAAV,EAAe;AACpC,mBAAOA,GAAP;AACH,SAFM,EAEJC,IAFI,CAEC,IAFD,CAAP;AAGH,KAJD;AAKAV,oCAAgCL,SAAhC,CAA0CgB,KAA1C,GAAkD,UAAUF,GAAV,EAAe;AAC7D,YAAIG,UAAU,KAAKC,uBAAL,CAA6BJ,GAA7B,CAAd;AACA,aAAKJ,QAAL,CAAcS,IAAd,CAAmBF,OAAnB;AACH,KAHD;AAIA,WAAOZ,+BAAP;AACH,CApBsC,CAoBrCF,yBAAyBiB,sBApBY,CAAvC;AAqBAC,QAAQhB,+BAAR,GAA0CA,+BAA1C;AACA","file":"CategoryMessageBufferImpl.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 AbstractCategoryLogger_1 = require(\"./AbstractCategoryLogger\");\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 CategoryMessageBufferLoggerImpl = (function (_super) {\n __extends(CategoryMessageBufferLoggerImpl, _super);\n function CategoryMessageBufferLoggerImpl() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.messages = [];\n return _this;\n }\n CategoryMessageBufferLoggerImpl.prototype.getMessages = function () {\n return this.messages;\n };\n CategoryMessageBufferLoggerImpl.prototype.toString = function () {\n return this.messages.map(function (msg) {\n return msg;\n }).join(\"\\n\");\n };\n CategoryMessageBufferLoggerImpl.prototype.doLog = function (msg) {\n var fullMsg = this.createDefaultLogMessage(msg);\n this.messages.push(fullMsg);\n };\n return CategoryMessageBufferLoggerImpl;\n}(AbstractCategoryLogger_1.AbstractCategoryLogger));\nexports.CategoryMessageBufferLoggerImpl = CategoryMessageBufferLoggerImpl;\n//# sourceMappingURL=CategoryMessageBufferImpl.js.map"]}]}