| 58105 | }; |
| 58106 | class Log { |
| 58107 | constructor(){ |
| 58108 | let { id } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { |
| 58109 | id: "" |
| 58110 | }; |
| 58111 | (0, _definePropertyDefault.default)(this, "id", void 0); |
| 58112 | (0, _definePropertyDefault.default)(this, "VERSION", (0, _env.VERSION)); |
| 58113 | (0, _definePropertyDefault.default)(this, "_startTs", (0, _hiResTimestamp.getHiResTimestamp)()); |
| 58114 | (0, _definePropertyDefault.default)(this, "_deltaTs", (0, _hiResTimestamp.getHiResTimestamp)()); |
| 58115 | (0, _definePropertyDefault.default)(this, "_storage", void 0); |
| 58116 | (0, _definePropertyDefault.default)(this, "userData", {}); |
| 58117 | (0, _definePropertyDefault.default)(this, "LOG_THROTTLE_TIMEOUT", 0); |
| 58118 | this.id = id; |
| 58119 | this._storage = new (0, _localStorageDefault.default)("__probe-".concat(this.id, "__"), DEFAULT_SETTINGS); |
| 58120 | this.userData = {}; |
| 58121 | this.timeStamp("".concat(this.id, " started")); |
| 58122 | (0, _autobind.autobind)(this); |
| 58123 | Object.seal(this); |
| 58124 | } |
| 58125 | set level(newLevel) { |
| 58126 | this.setLevel(newLevel); |
| 58127 | } |