qcobjects 2.6.2 → 2.6.3

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.
@@ -303,6 +303,7 @@ var init_Logger = __esm({
303
303
  debugEnabled = true;
304
304
  infoEnabled = true;
305
305
  warnEnabled = true;
306
+ errorEnabled = true;
306
307
  debug(message) {
307
308
  if (this.debugEnabled) {
308
309
  console.log("\x1B[35m%s\x1B[0m", `[DEBUG][${performance.now().toLocaleString()}] ${message}`);
@@ -324,6 +325,11 @@ var init_Logger = __esm({
324
325
  console.warn("\x1B[31m%s\x1B[0m", `[WARN][${performance.now().toLocaleString()}] ${message}`);
325
326
  }
326
327
  }
328
+ error(message) {
329
+ if (this.errorEnabled) {
330
+ console.error("\x1B[31m%s\x1B[0m", `[ERROR][${performance.now().toLocaleString()}] ${message}`);
331
+ }
332
+ }
327
333
  };
328
334
  logger = new Logger();
329
335
  Export(logger);