UNPKG

aio-analytics

Version:

[Victor Tran](https://stackoverflow.com/users/11862231/victor-tran)

29 lines (28 loc) 1.03 kB
var __spreadArray = (this && this.__spreadArray) || function (to, from) { for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) to[j] = from[i]; return to; }; /* eslint-disable no-console */ var LogService = /** @class */ (function () { function LogService(moduleName) { this.moduleName = moduleName; } LogService.prototype.info = function () { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } console.info.apply(console, __spreadArray(["[" + this.moduleName + "]"], args)); }; LogService.prototype.error = function () { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } console.error.apply(console, __spreadArray(["[" + this.moduleName + "]"], args)); }; return LogService; }()); export default LogService; export var defaultLogService = new LogService('Default');