@nocobase/logger 2.1.0-alpha.25 → 2.1.0-alpha.27

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.
Files changed (2) hide show
  1. package/lib/config.js +1 -1
  2. package/package.json +3 -3
package/lib/config.js CHANGED
@@ -47,7 +47,7 @@ var import_path = __toESM(require("path"));
47
47
  var import_utils = require("@nocobase/utils");
48
48
  const getLoggerLevel = /* @__PURE__ */ __name(() => process.env.LOGGER_LEVEL || (process.env.APP_ENV === "development" ? "debug" : "info"), "getLoggerLevel");
49
49
  const getLoggerFilePath = /* @__PURE__ */ __name((...paths) => {
50
- return import_path.default.resolve(process.env.LOGGER_BASE_PATH || (0, import_utils.storagePathJoin)("logs"), ...paths);
50
+ return import_path.default.resolve((0, import_utils.storagePathJoin)("logs"), ...paths);
51
51
  }, "getLoggerFilePath");
52
52
  const getLoggerTransport = /* @__PURE__ */ __name(() => (process.env.LOGGER_TRANSPORT || "console,dailyRotateFile").split(","), "getLoggerTransport");
53
53
  const getLoggerFormat = /* @__PURE__ */ __name(() => process.env.LOGGER_FORMAT || (process.env.APP_ENV === "development" ? "console" : "json"), "getLoggerFormat");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/logger",
3
- "version": "2.1.0-alpha.25",
3
+ "version": "2.1.0-alpha.27",
4
4
  "description": "nocobase logging library",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./lib/index.js",
@@ -11,7 +11,7 @@
11
11
  "directory": "packages/logger"
12
12
  },
13
13
  "dependencies": {
14
- "@nocobase/utils": "2.1.0-alpha.25",
14
+ "@nocobase/utils": "2.1.0-alpha.27",
15
15
  "chalk": "^4",
16
16
  "lodash": "^4.17.21",
17
17
  "triple-beam": "^1.4.1",
@@ -19,5 +19,5 @@
19
19
  "winston-daily-rotate-file": "^5.0.0",
20
20
  "winston-transport": "^4.7.0"
21
21
  },
22
- "gitHead": "63e4aaa625f3108fe41238e85bb13dee37fe1f48"
22
+ "gitHead": "a340a88d86d3ff7e06d723215b02aa3c122f4870"
23
23
  }