js-bao-wss-client 1.2.25 → 1.2.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -119,9 +119,12 @@
119
119
  return;
120
120
  const method = methodOverride ??
121
121
  (level === "info" ? "log" : level === "verbose" ? "debug" : level);
122
- const prefix = this.scope.length ? `[${this.scope.join(":")}]` : undefined;
122
+ const ts = new Date().toISOString().slice(11, 23); // HH:mm:ss.mmm
123
+ const prefix = this.scope.length
124
+ ? `[${ts}][${this.scope.join(":")}]`
125
+ : `[${ts}]`;
123
126
  // eslint-disable-next-line no-console
124
- console[method](...(prefix ? [prefix, ...args] : args));
127
+ console[method](prefix, ...args);
125
128
  };
126
129
  function createLogger(options) {
127
130
  const controller = {