UNPKG

opennms

Version:

Client API for the OpenNMS network monitoring platform

1 lines 12.2 kB
{"remainingRequest":"/data/node_modules/babel-loader/lib/index.js!/data/node_modules/ts-loader/index.js!/data/node_modules/tslint-loader/index.js??ref--4-0!/data/src/api/Log.ts","dependencies":[{"path":"/data/src/api/Log.ts","mtime":1553611371624},{"path":"/data/node_modules/typescript-logging/dist/commonjs/typescript-logging.d.ts","mtime":1553611387808},{"path":"/data/node_modules/typescript-logging/dist/commonjs/control/LogGroupControl.d.ts","mtime":1553611387932},{"path":"/data/node_modules/typescript-logging/dist/commonjs/control/CategoryServiceControl.d.ts","mtime":1553611387932},{"path":"/data/node_modules/typescript-logging/dist/commonjs/extension/MessagesToExtensionJSON.d.ts","mtime":1553611387932},{"path":"/data/node_modules/typescript-logging/dist/commonjs/extension/MessagesFromExtensionJSON.d.ts","mtime":1553611387932},{"path":"/data/node_modules/typescript-logging/dist/commonjs/extension/ExtensionMessageJSON.d.ts","mtime":1553611387932},{"path":"/data/node_modules/typescript-logging/dist/commonjs/extension/ExtensionHelper.d.ts","mtime":1553611387932},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/category/AbstractCategoryLogger.d.ts","mtime":1553611388000},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/LoggerOptions.d.ts","mtime":1553611387932},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/category/CategoryLogger.d.ts","mtime":1553611388000},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/category/CategoryService.d.ts","mtime":1553611388000},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/category/CategoryConsoleLoggerImpl.d.ts","mtime":1553611388000},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/category/CategoryDelegateLoggerImpl.d.ts","mtime":1553611388000},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/category/CategoryMessageBufferImpl.d.ts","mtime":1553611388000},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/standard/Logger.d.ts","mtime":1553611388000},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/standard/LoggerFactory.d.ts","mtime":1553611388004},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/standard/LoggerFactoryService.d.ts","mtime":1553611388004},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/standard/LoggerFactoryRuntimeSettings.d.ts","mtime":1553611388004},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/standard/AbstractLogger.d.ts","mtime":1553611388000},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/standard/ConsoleLoggerImpl.d.ts","mtime":1553611388000},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/standard/MessageBufferLoggerImpl.d.ts","mtime":1553611388004},{"path":"/data/node_modules/typescript-logging/dist/commonjs/utils/DataStructures.d.ts","mtime":1553611387936},{"path":"/data/node_modules/typescript-logging/dist/commonjs/utils/JSONHelper.d.ts","mtime":1553611387936},{"path":"/data/node_modules/typescript-logging/dist/commonjs/utils/MessageUtils.d.ts","mtime":1553611387936},{"path":"/data/node_modules/moment/moment.d.ts","mtime":1553611386704},{"path":"/data/node_modules/axios/index.d.ts","mtime":1553611386356},{"path":"/data/typings/index.d.ts","mtime":1553611371628},{"path":"/data/node_modules/@types/fs-extra/index.d.ts","mtime":1553611386380},{"path":"/data/node_modules/@types/node/index.d.ts","mtime":1553611386380},{"path":"/data/node_modules/@types/node/inspector.d.ts","mtime":1553611386380},{"path":"/data/node_modules/@types/glob/index.d.ts","mtime":1553611386380},{"path":"/data/node_modules/@types/minimatch/index.d.ts","mtime":1553611386380},{"path":"/data/node_modules/@types/glob/node_modules/@types/minimatch/index.d.ts","mtime":1553611386368},{"path":"/data/node_modules/@types/handlebars/index.d.ts","mtime":1553611386368},{"path":"/data/node_modules/@types/highlight.js/index.d.ts","mtime":1553611386368},{"path":"/data/node_modules/@types/jest/index.d.ts","mtime":1553611386368},{"path":"/data/node_modules/@types/jquery/index.d.ts","mtime":1553611386368},{"path":"/data/node_modules/@types/lodash/index.d.ts","mtime":1553611386320},{"path":"/data/node_modules/@types/lodash/common/common.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/lodash/common/array.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/lodash/common/collection.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/lodash/common/date.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/lodash/common/function.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/lodash/common/lang.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/lodash/common/math.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/lodash/common/number.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/lodash/common/object.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/lodash/common/seq.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/lodash/common/string.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/lodash/common/util.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/marked/index.d.ts","mtime":1553611386368},{"path":"/data/node_modules/@types/shelljs/index.d.ts","mtime":1553611386380},{"path":"/data/node_modules/@types/urijs/index.d.ts","mtime":1553611386380},{"path":"/data/node_modules/typescript/lib/lib.es2015.d.ts","mtime":1553611387384},{"path":"/data/node_modules/typescript/lib/lib.es2015.core.d.ts","mtime":1553611387384},{"path":"/data/node_modules/typescript/lib/lib.es2015.collection.d.ts","mtime":1553611387384},{"path":"/data/node_modules/typescript/lib/lib.es2015.generator.d.ts","mtime":1553611387384},{"path":"/data/node_modules/typescript/lib/lib.es2015.promise.d.ts","mtime":1553611387384},{"path":"/data/node_modules/typescript/lib/lib.es2015.iterable.d.ts","mtime":1553611387384},{"path":"/data/node_modules/typescript/lib/lib.es2015.symbol.d.ts","mtime":1553611387384},{"path":"/data/node_modules/typescript/lib/lib.es2015.proxy.d.ts","mtime":1553611387384},{"path":"/data/node_modules/typescript/lib/lib.es2015.reflect.d.ts","mtime":1553611387384},{"path":"/data/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","mtime":1553611387384},{"path":"/data/node_modules/typescript/lib/lib.es5.d.ts","mtime":1553611387388},{"path":"/data/node_modules/typescript/lib/lib.dom.d.ts","mtime":1553611387384},{"path":"/data/node_modules/typescript-logging/dist/commonjs/typescript-logging.d.ts","mtime":1553611387808},{"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},{"path":"/data/node_modules/ts-loader/index.js","mtime":1553611386824},{"path":"/data/node_modules/tslint-loader/index.js","mtime":1553611386824}],"contextDependencies":[],"result":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar typescript_logging_1 = require(\"typescript-logging\");\n// Optionally change default settings, in this example set default logging to Info.\n// Without changing configuration, categories will log to Error.\ntypescript_logging_1.CategoryServiceFactory.setDefaultConfiguration(new typescript_logging_1.CategoryDefaultConfiguration(typescript_logging_1.LogLevel.Info));\n// Create categories, they will autoregister themselves.\n// This creates one root logger, with 1 child sub category.\n/** @hidden */\nexports.catRoot = new typescript_logging_1.Category('opennms');\n/** @hidden */\nexports.catAPI = new typescript_logging_1.Category('api', exports.catRoot);\n/** @hidden */\nexports.catDao = new typescript_logging_1.Category('dao', exports.catRoot);\n/** @hidden */\nexports.catModel = new typescript_logging_1.Category('model', exports.catRoot);\n/** @hidden */\nexports.catRest = new typescript_logging_1.Category('rest', exports.catRoot);\n/** @hidden */\nexports.catUtil = new typescript_logging_1.Category('util', exports.catRoot);\n/**\n * Get a logger, this can be retrieved for root categories only (in the example above, the 'service' category).\n * @hidden\n */\nexports.log = typescript_logging_1.CategoryServiceFactory.getLogger(exports.catRoot);\n/** @hidden */\nexports.setLogLevel = function (level, cat) {\n if (cat === undefined) {\n cat = exports.catRoot;\n }\n // console.log('setting category ' + cat.name + ' to ' + level.toString());\n typescript_logging_1.CategoryServiceFactory.getRuntimeSettings().getCategorySettings(cat).logLevel = level;\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = cat.children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var subCat = _step.value;\n\n exports.setLogLevel(level, subCat);\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n};",{"version":3,"file":"/data/src/api/Log.ts","sourceRoot":"","sources":["/data/node_modules/tslint-loader/index.js??ref--4-0!/data/src/api/Log.ts"],"names":[],"mappings":";;;AAAA,mCAM4B;AAE5B,AAAmF;AACnF,AAAgE;AAChE,qBAAsB,uBAAC,AAAuB,wBAAC,IAAI,qBAA4B,6BAAC,qBAAQ,SAAC,AAAI,AAAC,AAAC,AAAC;AAEhG,AAAwD;AACxD,AAA2D;AAE3D,AAAc;AACD,QAAA,AAAO,UAAG,IAAI,qBAAQ,SAAC,AAAS,AAAC,AAAC;AAE/C,AAAc;AACD,QAAA,AAAM,SAAG,IAAI,qBAAQ,SAAC,AAAK,OAAE,QAAO,AAAC,AAAC;AAEnD,AAAc;AACD,QAAA,AAAM,SAAG,IAAI,qBAAQ,SAAC,AAAK,OAAE,QAAO,AAAC,AAAC;AAEnD,AAAc;AACD,QAAA,AAAQ,WAAG,IAAI,qBAAQ,SAAC,AAAO,SAAE,QAAO,AAAC,AAAC;AAEvD,AAAc;AACD,QAAA,AAAO,UAAG,IAAI,qBAAQ,SAAC,AAAM,QAAE,QAAO,AAAC,AAAC;AAErD,AAAc;AACD,QAAA,AAAO,UAAG,IAAI,qBAAQ,SAAC,AAAM,QAAE,QAAO,AAAC,AAAC;AAErD,AAGG;;;;AACU,QAAA,AAAG,MAAmB,qBAAsB,uBAAC,AAAS,UAAC,QAAO,AAAC,AAAC;AAE7E,AAAc;AACD,QAAA,AAAW,cAAG,UAAC,AAAe,OAAE,AAAc,AAAE,AAAE;AAC7D,AAAE,AAAC,QAAC,AAAG,QAAK,AAAS,AAAC,WAAC,AAAC;AACtB,AAAG,cAAG,QAAO,AAAC,AAChB;AAAC;AACD,AAA2E;AAC3E,yBAAsB,uBAAC,AAAkB,AAAE,qBAAC,AAAmB,oBAAC,AAAG,AAAC,KAAC,AAAQ,WAAG,AAAK,AAAC;;;;;;AACtF,AAAG,AAAC,AAAC,6BAAgB,AAAG,IAAC,AAAQ,AAAC;AAAC,AAAC,gBAAzB,AAAM;;AACf,oBAAW,YAAC,AAAK,OAAE,AAAM,AAAC,AAAC,AAC7B;AAAC,AACH;;;;;;;;;;;;;;;AAAC,AAAC","sourcesContent":["import {\n Category,\n CategoryLogger,\n CategoryServiceFactory,\n CategoryDefaultConfiguration,\n LogLevel,\n} from 'typescript-logging';\n\n// Optionally change default settings, in this example set default logging to Info.\n// Without changing configuration, categories will log to Error.\nCategoryServiceFactory.setDefaultConfiguration(new CategoryDefaultConfiguration(LogLevel.Info));\n\n// Create categories, they will autoregister themselves.\n// This creates one root logger, with 1 child sub category.\n\n/** @hidden */\nexport const catRoot = new Category('opennms');\n\n/** @hidden */\nexport const catAPI = new Category('api', catRoot);\n\n/** @hidden */\nexport const catDao = new Category('dao', catRoot);\n\n/** @hidden */\nexport const catModel = new Category('model', catRoot);\n\n/** @hidden */\nexport const catRest = new Category('rest', catRoot);\n\n/** @hidden */\nexport const catUtil = new Category('util', catRoot);\n\n/**\n * Get a logger, this can be retrieved for root categories only (in the example above, the 'service' category).\n * @hidden\n */\nexport const log: CategoryLogger = CategoryServiceFactory.getLogger(catRoot);\n\n/** @hidden */\nexport const setLogLevel = (level: LogLevel, cat?: Category) => {\n if (cat === undefined) {\n cat = catRoot;\n }\n // console.log('setting category ' + cat.name + ' to ' + level.toString());\n CategoryServiceFactory.getRuntimeSettings().getCategorySettings(cat).logLevel = level;\n for (const subCat of cat.children) {\n setLogLevel(level, subCat);\n }\n};\n"]}]}