@nocobase/logger 0.21.0-alpha.14 → 0.21.0-alpha.16

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.
@@ -58,7 +58,7 @@ const _SystemLoggerTransport = class _SystemLoggerTransport extends import_winst
58
58
  }
59
59
  }
60
60
  log(info, callback) {
61
- const { level, message, reqId, app, stack, cause, [import_triple_beam.SPLAT]: args } = info;
61
+ const { level, message, reqId, app, dataSourceKey, stack, cause, [import_triple_beam.SPLAT]: args } = info;
62
62
  const logger = level === "error" && this.errorLogger ? this.errorLogger : this.logger;
63
63
  const { module: module2, submodule, method, ...meta } = (args == null ? void 0 : args[0]) || {};
64
64
  logger.log({
@@ -70,7 +70,8 @@ const _SystemLoggerTransport = class _SystemLoggerTransport extends import_winst
70
70
  submodule: submodule || info["submodule"] || "",
71
71
  method: method || "",
72
72
  app,
73
- reqId
73
+ reqId,
74
+ dataSourceKey: dataSourceKey || "main"
74
75
  });
75
76
  if (cause) {
76
77
  logger.log({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/logger",
3
- "version": "0.21.0-alpha.14",
3
+ "version": "0.21.0-alpha.16",
4
4
  "description": "nocobase logging library",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./lib/index.js",
@@ -18,5 +18,5 @@
18
18
  "winston-daily-rotate-file": "^4.7.1",
19
19
  "winston-transport": "^4.5.0"
20
20
  },
21
- "gitHead": "dbcca03c0535e14f0b09fd13306731b4438829c4"
21
+ "gitHead": "2914500f14e4454cc5702a49371230865660ca33"
22
22
  }