@x1-labs/logging-nestjs 0.1.6 → 0.1.8
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.
- package/dist/nest.js +3 -4
- package/dist/nest.js.map +1 -1
- package/package.json +2 -2
package/dist/nest.js
CHANGED
|
@@ -5,7 +5,8 @@ const nestjs_pino_1 = require("nestjs-pino");
|
|
|
5
5
|
const logging_1 = require("@x1-labs/logging");
|
|
6
6
|
function createNestLoggerModule(options = {}) {
|
|
7
7
|
const level = (0, logging_1.resolveLogLevel)(options.level);
|
|
8
|
-
const
|
|
8
|
+
const format = (0, logging_1.resolveLogFormat)(options.format ?? options.json);
|
|
9
|
+
const transport = (0, logging_1.resolveTransport)(format);
|
|
9
10
|
const httpLogging = options.httpLogging ?? true;
|
|
10
11
|
const forwardedIp = options.forwardedIp ?? true;
|
|
11
12
|
const base = (0, logging_1.resolveBase)();
|
|
@@ -25,9 +26,7 @@ function createNestLoggerModule(options = {}) {
|
|
|
25
26
|
}),
|
|
26
27
|
}
|
|
27
28
|
: {}),
|
|
28
|
-
transport
|
|
29
|
-
? { target: 'pino-pretty', options: { singleLine: true } }
|
|
30
|
-
: undefined,
|
|
29
|
+
transport,
|
|
31
30
|
...options.pinoOptions,
|
|
32
31
|
};
|
|
33
32
|
return nestjs_pino_1.LoggerModule.forRoot({ pinoHttp });
|
package/dist/nest.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nest.js","sourceRoot":"","sources":["../src/nest.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"nest.js","sourceRoot":"","sources":["../src/nest.ts"],"names":[],"mappings":";;AAgBA,wDAgCC;AA9CD,6CAA2C;AAC3C,8CAK0B;AAQ1B,SAAgB,sBAAsB,CACpC,UAAyC,EAAE;IAE3C,MAAM,KAAK,GAAG,IAAA,yBAAe,EAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC7C,MAAM,MAAM,GAAG,I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
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"check": "bun run lint && bun run typecheck && bun run format --check"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@x1-labs/logging": "^0.1.
|
|
27
|
+
"@x1-labs/logging": "^0.1.8"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"pino-pretty": "^13.0.0",
|