@lark-apaas/nestjs-logger 1.0.2-alpha.6 → 1.0.2-alpha.7
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/index.cjs +2 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -14562,7 +14562,6 @@ var BasePinoLogger = class _BasePinoLogger {
|
|
|
14562
14562
|
}
|
|
14563
14563
|
const { context, stack, extras } = this.extractOptionalParams(optionalParams, treatStack);
|
|
14564
14564
|
const requestState = this.contextStore.getContext();
|
|
14565
|
-
console.log("csh requestState", requestState);
|
|
14566
14565
|
const traceId = requestState?.requestId ?? null;
|
|
14567
14566
|
const payload = {
|
|
14568
14567
|
trace_id: traceId,
|
|
@@ -14735,7 +14734,7 @@ __name(sanitizeValue, "sanitizeValue");
|
|
|
14735
14734
|
var import_config3 = __toESM(require_config2(), 1);
|
|
14736
14735
|
import { Global, Module } from "@nestjs/common";
|
|
14737
14736
|
import { APP_INTERCEPTOR } from "@nestjs/core";
|
|
14738
|
-
import { RequestContextService as RequestContextService4 } from "@lark-apaas/nestjs-common";
|
|
14737
|
+
import { CommonModule, RequestContextService as RequestContextService4 } from "@lark-apaas/nestjs-common";
|
|
14739
14738
|
|
|
14740
14739
|
// src/config/logger.config.ts
|
|
14741
14740
|
var import_config = __toESM(require_config2(), 1);
|
|
@@ -15066,10 +15065,10 @@ LoggerModule = _ts_decorate4([
|
|
|
15066
15065
|
Global(),
|
|
15067
15066
|
Module({
|
|
15068
15067
|
imports: [
|
|
15069
|
-
import_config3.ConfigModule.forFeature(logger_config_default)
|
|
15068
|
+
import_config3.ConfigModule.forFeature(logger_config_default),
|
|
15069
|
+
CommonModule
|
|
15070
15070
|
],
|
|
15071
15071
|
providers: [
|
|
15072
|
-
RequestContextService4,
|
|
15073
15072
|
LoggerContextMiddleware,
|
|
15074
15073
|
{
|
|
15075
15074
|
provide: PINO_ROOT_LOGGER,
|
|
@@ -15104,7 +15103,6 @@ LoggerModule = _ts_decorate4([
|
|
|
15104
15103
|
exports: [
|
|
15105
15104
|
AppLogger,
|
|
15106
15105
|
TRACE_LOGGER,
|
|
15107
|
-
RequestContextService4,
|
|
15108
15106
|
LoggerContextMiddleware
|
|
15109
15107
|
]
|
|
15110
15108
|
})
|