{"remainingRequest":"/data/node_modules/babel-loader/lib/index.js!/data/node_modules/typescript-logging/dist/commonjs/log/category/CategoryLogger.js","dependencies":[{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/category/CategoryLogger.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 LoggerOptions_1 = require(\"../LoggerOptions\");\nvar CategoryService_1 = require(\"./CategoryService\");\n/**\n * Category for use with categorized logging.\n * At minimum you need one category, which will serve as the root category.\n * You can create child categories (like a tree). You can have multiple root\n * categories.\n */\nvar Category = function () {\n    function Category(name, parent) {\n        if (parent === void 0) {\n            parent = null;\n        }\n        this._children = [];\n        this._logLevel = LoggerOptions_1.LogLevel.Error;\n        if (name.indexOf(\"#\") !== -1) {\n            throw new Error(\"Cannot use # in a name of a Category\");\n        }\n        this._id = Category.nextId();\n        this._name = name;\n        this._parent = parent;\n        if (this._parent != null) {\n            this._parent._children.push(this);\n        }\n        CategoryService_1.CategoryServiceImpl.getInstance().registerCategory(this);\n    }\n    Object.defineProperty(Category.prototype, \"name\", {\n        get: function get() {\n            return this._name;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(Category.prototype, \"parent\", {\n        get: function get() {\n            return this._parent;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(Category.prototype, \"children\", {\n        get: function get() {\n            return this._children;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(Category.prototype, \"logLevel\", {\n        get: function get() {\n            return this._logLevel;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Category.prototype.getCategoryPath = function () {\n        var result = this.name;\n        var cat = this.parent;\n        while (cat != null) {\n            result = cat.name + \"#\" + result;\n            cat = cat.parent;\n        }\n        return result;\n    };\n    Object.defineProperty(Category.prototype, \"id\", {\n        /**\n         * Returns the id for this category (this\n         * is for internal purposes only).\n         * @returns {number} Id\n         */\n        get: function get() {\n            return this._id;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Category.nextId = function () {\n        return Category.currentId++;\n    };\n    return Category;\n}();\nCategory.currentId = 1;\nexports.Category = Category;\n//# sourceMappingURL=CategoryLogger.js.map",{"version":3,"sources":["node_modules/typescript-logging/dist/commonjs/log/category/CategoryLogger.js"],"names":["LoggerOptions_1","require","CategoryService_1","Category","name","parent","_children","_logLevel","LogLevel","Error","indexOf","_id","nextId","_name","_parent","push","CategoryServiceImpl","getInstance","registerCategory","Object","defineProperty","prototype","get","enumerable","configurable","getCategoryPath","result","cat","currentId","exports"],"mappings":"AAAA;;AACA,IAAIA,kBAAkBC,QAAQ,kBAAR,CAAtB;AACA,IAAIC,oBAAoBD,QAAQ,mBAAR,CAAxB;AACA;;;;;;AAMA,IAAIE,WAAY,YAAY;AACxB,aAASA,QAAT,CAAkBC,IAAlB,EAAwBC,MAAxB,EAAgC;AAC5B,YAAIA,WAAW,KAAK,CAApB,EAAuB;AAAEA,qBAAS,IAAT;AAAgB;AACzC,aAAKC,SAAL,GAAiB,EAAjB;AACA,aAAKC,SAAL,GAAiBP,gBAAgBQ,QAAhB,CAAyBC,KAA1C;AACA,YAAIL,KAAKM,OAAL,CAAa,GAAb,MAAsB,CAAC,CAA3B,EAA8B;AAC1B,kBAAM,IAAID,KAAJ,CAAU,sCAAV,CAAN;AACH;AACD,aAAKE,GAAL,GAAWR,SAASS,MAAT,EAAX;AACA,aAAKC,KAAL,GAAaT,IAAb;AACA,aAAKU,OAAL,GAAeT,MAAf;AACA,YAAI,KAAKS,OAAL,IAAgB,IAApB,EAA0B;AACtB,iBAAKA,OAAL,CAAaR,SAAb,CAAuBS,IAAvB,CAA4B,IAA5B;AACH;AACDb,0BAAkBc,mBAAlB,CAAsCC,WAAtC,GAAoDC,gBAApD,CAAqE,IAArE;AACH;AACDC,WAAOC,cAAP,CAAsBjB,SAASkB,S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e,EAAhB;AAsEAA,SAASyB,SAAT,GAAqB,CAArB;AACAC,QAAQ1B,QAAR,GAAmBA,QAAnB;AACA","file":"CategoryLogger.js","sourceRoot":"/data","sourcesContent":["\"use strict\";\nvar LoggerOptions_1 = require(\"../LoggerOptions\");\nvar CategoryService_1 = require(\"./CategoryService\");\n/**\n * Category for use with categorized logging.\n * At minimum you need one category, which will serve as the root category.\n * You can create child categories (like a tree). You can have multiple root\n * categories.\n */\nvar Category = (function () {\n    function Category(name, parent) {\n        if (parent === void 0) { parent = null; }\n        this._children = [];\n        this._logLevel = LoggerOptions_1.LogLevel.Error;\n        if (name.indexOf(\"#\") !== -1) {\n            throw new Error(\"Cannot use # in a name of a Category\");\n        }\n        this._id = Category.nextId();\n        this._name = name;\n        this._parent = parent;\n        if (this._parent != null) {\n            this._parent._children.push(this);\n        }\n        CategoryService_1.CategoryServiceImpl.getInstance().registerCategory(this);\n    }\n    Object.defineProperty(Category.prototype, \"name\", {\n        get: function () {\n            return this._name;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(Category.prototype, \"parent\", {\n        get: function () {\n            return this._parent;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(Category.prototype, \"children\", {\n        get: function () {\n            return this._children;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(Category.prototype, \"logLevel\", {\n        get: function () {\n            return this._logLevel;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Category.prototype.getCategoryPath = function () {\n        var result = this.name;\n        var cat = this.parent;\n        while (cat != null) {\n            result = cat.name + \"#\" + result;\n            cat = cat.parent;\n        }\n        return result;\n    };\n    Object.defineProperty(Category.prototype, \"id\", {\n        /**\n         * Returns the id for this category (this\n         * is for internal purposes only).\n         * @returns {number} Id\n         */\n        get: function () {\n            return this._id;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Category.nextId = function () {\n        return Category.currentId++;\n    };\n    return Category;\n}());\nCategory.currentId = 1;\nexports.Category = Category;\n//# sourceMappingURL=CategoryLogger.js.map"]}]}