smartlog-destination-devtools/.cache/67/bd803a26946dff8fb0a8cd43a25a65.json

1 line
6.5 KiB
JSON
Raw Normal View History

2018-11-13 00:32:39 +00:00
{"id":"../node_modules/@pushrocks/smartlog/dist/smartlog.classes.smartlog.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/smartlog/ts/smartlog.classes.smartlog.ts","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/package.json","includedInParent":true,"mtime":1542069011329},{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/smartlog/package.json","includedInParent":true,"mtime":1542058764035},{"name":"./smartlog.classes.logrouter","loc":{"line":3,"column":45},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/smartlog/dist/smartlog.classes.smartlog.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/smartlog/dist/smartlog.classes.logrouter.js"}],"generated":{"js":"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst smartlog_classes_logrouter_1 = require(\"./smartlog.classes.logrouter\");\nclass Smartlog {\n constructor(optionsArg) {\n this.logRouter = new smartlog_classes_logrouter_1.LogRouter();\n this.logContext = optionsArg.logContext;\n this.minimumLogLevel = optionsArg.minimumLogLevel;\n }\n addLogDestination(logDestinationArg) {\n this.logRouter.addLogDestination(logDestinationArg);\n }\n // ============\n // Logger Setup\n // ============\n /**\n * enables console logging\n */\n enableConsole() {\n this.consoleEnabled = true;\n }\n // =============\n // log functions\n // =============\n /**\n * main log method\n * @param logLevelArg - the log level\n * @param logMessageArg - the log message\n * @param logDataArg - any additional log data\n */\n log(logLevelArg, logMessageArg, logDataArg) {\n if (this.consoleEnabled) {\n console.log(`LOG: ${logLevelArg}: ${logMessageArg}`);\n }\n const logPackage = {\n timestamp: Date.now(),\n type: 'log',\n context: this.logContext,\n level: logLevelArg,\n message: logMessageArg\n };\n if (logDataArg) {\n logPackage.data = logDataArg;\n }\n this.logRouter.routeLog(logPackage);\n }\n increment(logLevelArg, logMessageArg) {\n if (this.consoleEnabled) {\n console.log(`INCREMENT: ${logLevelArg}: ${logMessageArg}`);\n }\n this.logRouter.routeLog({\n timestamp: Date.now(),\n type: 'increment',\n context: this.logContext,\n level: logLevelArg,\n message: logMessageArg\n });\n }\n handleLogPackage(logPackageArg) {\n this.logRouter.routeLog(logPackageArg);\n }\n}\nexports.Smartlog = Smartlog;\n","map":{"version":3,"file":"smartlog.classes.smartlog.js","sourceRoot":"","sources":["../ts/smartlog.classes.smartlog.ts"],"names":[],"mappings":";;AAKA,6EAAyD;AAOzD,MAAa,QAAQ;IAYnB,YAAY,UAAsC;QAN1C,cAAS,GAAG,IAAI,sCAAS,EAAE,CAAC;QAOlC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;QACxC,IAAI,CAAC,eAAe,GAAG,UAAU,CAAC,eAAe,CAAC;IACpD,CAAC;IAPM,iBAAiB,CAAE,iBAAkC;QAC1D,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACtD,CAAC;IAQD,eAAe;IACf,eAAe;IACf,eAAe;IAEf;;OAEG;IACH,aAAa;QACX,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;IAC7B,CAAC;IAED,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;IAChB;;;;;OAKG;IACI,GAAG,CAAC,WAAsB,EAAE,aAAqB,EAAE,UAAgB;QACxE,IAAI,IAAI,CAAC,cAAc,EAAE;YACvB,OAAO,CAAC,GAAG,CAAC,QAAQ,WAAW,KAAK,aAAa,EAAE,CAAC,CAAC;SACtD;QACD,MAAM,UAAU,GAAgB;YAC9B,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;YACrB,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,IAAI,CAAC,UA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