@edirect/logger 11.0.26 → 11.0.28
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/package.json +3 -3
- package/dist/src/logger/interfaces/logger-module-options.interface.d.ts +1 -5
- package/dist/src/logger/interfaces/logger-module-options.interface.d.ts.map +1 -1
- package/dist/src/logger/log.d.ts +28 -11
- package/dist/src/logger/log.d.ts.map +1 -1
- package/dist/src/logger/log.js +25 -106
- package/dist/src/logger/logger.class.d.ts +2 -2
- package/dist/src/logger/logger.class.d.ts.map +1 -1
- package/dist/src/logger/logger.class.js +1 -1
- package/dist/src/logger/logger.service.d.ts.map +1 -1
- package/dist/src/logger/logger.service.js +12 -2
- package/package.json +3 -3
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edirect/logger",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.27",
|
|
4
4
|
"main": "./dist/src/index.js",
|
|
5
5
|
"types": "./dist/src/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@edirect/config": "^11.0.
|
|
19
|
+
"@edirect/config": "^11.0.27",
|
|
20
20
|
"@nestjs/common": "^11.1.6",
|
|
21
|
-
"pino": "9.9.
|
|
21
|
+
"pino": "9.9.4",
|
|
22
22
|
"supertest": "7.1.4",
|
|
23
23
|
"tslib": "^2.8.1"
|
|
24
24
|
},
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Level } from 'pino';
|
|
2
1
|
export interface LoggerModuleOptions {
|
|
3
2
|
output?: string;
|
|
4
3
|
logs?: {
|
|
@@ -7,10 +6,7 @@ export interface LoggerModuleOptions {
|
|
|
7
6
|
infoFile: string;
|
|
8
7
|
exceptionsFile?: string;
|
|
9
8
|
};
|
|
10
|
-
name?: string;
|
|
11
9
|
host?: string;
|
|
12
|
-
|
|
13
|
-
version?: string;
|
|
14
|
-
level?: Level;
|
|
10
|
+
name?: string;
|
|
15
11
|
}
|
|
16
12
|
//# sourceMappingURL=logger-module-options.interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger-module-options.interface.d.ts","sourceRoot":"","sources":["../../../../src/logger/interfaces/logger-module-options.interface.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"logger-module-options.interface.d.ts","sourceRoot":"","sources":["../../../../src/logger/interfaces/logger-module-options.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE;QACL,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;QACpB,QAAQ,EAAE,MAAM,CAAC;QACjB,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
|
package/dist/src/logger/log.d.ts
CHANGED
|
@@ -1,22 +1,39 @@
|
|
|
1
|
-
|
|
1
|
+
export interface LogConfigs {
|
|
2
|
+
logs?: {
|
|
3
|
+
errorFile?: string;
|
|
4
|
+
warningFile?: string;
|
|
5
|
+
infoFile?: string;
|
|
6
|
+
exceptionsFile?: string;
|
|
7
|
+
};
|
|
8
|
+
host?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
protocol?: string;
|
|
11
|
+
version?: string;
|
|
12
|
+
}
|
|
2
13
|
export interface LogMetadata {
|
|
3
|
-
|
|
14
|
+
timestamp: string;
|
|
15
|
+
application?: string;
|
|
16
|
+
version?: string;
|
|
17
|
+
host?: string;
|
|
18
|
+
protocol?: string;
|
|
19
|
+
'remote-address'?: string;
|
|
20
|
+
level?: string;
|
|
21
|
+
payload?: any;
|
|
4
22
|
sessionId: string;
|
|
5
23
|
quoteId: string;
|
|
6
|
-
payload?: any;
|
|
7
24
|
}
|
|
8
25
|
export declare class Logger {
|
|
9
26
|
private sessionId;
|
|
10
27
|
private quoteId;
|
|
11
|
-
private configs
|
|
28
|
+
private configs?;
|
|
12
29
|
private logger;
|
|
13
|
-
constructor(
|
|
14
|
-
debug(message: string
|
|
15
|
-
info(message: string, payload?: any,
|
|
16
|
-
warning(message: string, payload?: any
|
|
17
|
-
warn(message: string, payload?: any
|
|
18
|
-
error(message: string, payload?: any
|
|
19
|
-
verbose(message: string
|
|
30
|
+
constructor(clientConfigs?: LogConfigs);
|
|
31
|
+
debug(message: string): void;
|
|
32
|
+
info(message: string, payload?: any, address?: string): void;
|
|
33
|
+
warning(message: string, payload?: any): void;
|
|
34
|
+
warn(message: string, payload?: any): void;
|
|
35
|
+
error(message: string, payload?: any): void;
|
|
36
|
+
verbose(message: string): void;
|
|
20
37
|
setSessionId(sessionId: string): void;
|
|
21
38
|
setQuoteId(quoteId: string): void;
|
|
22
39
|
private buildLog;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../src/logger/log.ts"],"names":[],"mappings":"AAGA,
|
|
1
|
+
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../src/logger/log.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,UAAU;IACzB,IAAI,CAAC,EAAE;QACL,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,MAAM;IACjB,OAAO,CAAC,SAAS,CAAM;IACvB,OAAO,CAAC,OAAO,CAAM;IACrB,OAAO,CAAC,OAAO,CAAC,CAAa;IAC7B,OAAO,CAAC,MAAM,CAAe;gBAEjB,aAAa,CAAC,EAAE,UAAU;IAMtC,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAI5B,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO,SAAY,GAAG,IAAI;IAK/D,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,GAAG,IAAI;IAK7C,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,GAAG,IAAI;IAI1C,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,GAAG,IAAI;IAK3C,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAI9B,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAGrC,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAIjC,OAAO,CAAC,QAAQ;CAejB"}
|
package/dist/src/logger/log.js
CHANGED
|
@@ -3,120 +3,36 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Logger = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
6
|
-
const pino_1 = tslib_1.
|
|
6
|
+
const pino_1 = tslib_1.__importDefault(require("pino"));
|
|
7
7
|
class Logger {
|
|
8
8
|
sessionId = '';
|
|
9
9
|
quoteId = '';
|
|
10
10
|
configs;
|
|
11
11
|
logger;
|
|
12
|
-
constructor(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
infoFile: env.LOGS_INFO_FILE,
|
|
16
|
-
warningFile: env.LOGS_WARNING_FILE,
|
|
17
|
-
errorFile: env.LOGS_ERROR_FILE,
|
|
18
|
-
exceptionsFile: env.LOGS_EXCEPTIONS_FILE,
|
|
19
|
-
},
|
|
20
|
-
level: env.LOGS_LEVEL?.toLowerCase() || 'info',
|
|
21
|
-
output: env.LOGS_OUTPUT ?? 'console',
|
|
22
|
-
name: env.npm_package_name ?? env.APP_NAME ?? 'app',
|
|
23
|
-
version: env.npm_package_version ?? env.APP_VERSION ?? '0.0.0',
|
|
24
|
-
host: env.LOGS_HOST ?? '0.0.0.0',
|
|
25
|
-
protocol: env.LOGS_PROTOCOL ?? 'http',
|
|
26
|
-
};
|
|
27
|
-
this.configs = { ...defaults, ...options };
|
|
28
|
-
const streams = [];
|
|
29
|
-
if (this.configs.output === 'file' || this.configs.output === 'both') {
|
|
30
|
-
if (this.configs.logs?.infoFile) {
|
|
31
|
-
streams.push({
|
|
32
|
-
level: 'info',
|
|
33
|
-
stream: pino_1.default.destination({
|
|
34
|
-
dest: this.configs.logs.infoFile,
|
|
35
|
-
mkdir: true,
|
|
36
|
-
sync: false,
|
|
37
|
-
}),
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
if (this.configs.logs?.warningFile) {
|
|
41
|
-
streams.push({
|
|
42
|
-
level: 'warn',
|
|
43
|
-
stream: pino_1.default.destination({
|
|
44
|
-
dest: this.configs.logs.warningFile,
|
|
45
|
-
mkdir: true,
|
|
46
|
-
sync: false,
|
|
47
|
-
}),
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
if (this.configs.logs?.errorFile) {
|
|
51
|
-
streams.push({
|
|
52
|
-
level: 'error',
|
|
53
|
-
stream: pino_1.default.destination({
|
|
54
|
-
dest: this.configs.logs.errorFile,
|
|
55
|
-
mkdir: true,
|
|
56
|
-
sync: false,
|
|
57
|
-
}),
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
if (this.configs.output === 'console' || this.configs.output === 'both') {
|
|
62
|
-
streams.push({
|
|
63
|
-
level: this.configs.level,
|
|
64
|
-
stream: process.stdout,
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
this.logger = (0, pino_1.default)({
|
|
68
|
-
level: this.configs.level,
|
|
69
|
-
timestamp: () => `,"timestamp":"${new Date(Date.now()).toISOString()}"`,
|
|
70
|
-
messageKey: 'message',
|
|
71
|
-
errorKey: 'error',
|
|
72
|
-
base: {
|
|
73
|
-
name: this.configs.name,
|
|
74
|
-
version: this.configs.version,
|
|
75
|
-
host: this.configs.host,
|
|
76
|
-
protocol: this.configs.protocol,
|
|
77
|
-
},
|
|
78
|
-
formatters: {
|
|
79
|
-
level: label => ({ level: label }),
|
|
80
|
-
},
|
|
81
|
-
}, (0, pino_1.multistream)(streams));
|
|
82
|
-
if (this.configs.logs?.exceptionsFile) {
|
|
83
|
-
const exceptionLogger = (0, pino_1.default)({
|
|
84
|
-
level: 'fatal',
|
|
85
|
-
timestamp: () => `,"timestamp":"${new Date(Date.now()).toISOString()}"`,
|
|
86
|
-
messageKey: 'message',
|
|
87
|
-
errorKey: 'error',
|
|
88
|
-
}, pino_1.default.destination({
|
|
89
|
-
dest: this.configs.logs.exceptionsFile,
|
|
90
|
-
mkdir: true,
|
|
91
|
-
sync: true,
|
|
92
|
-
}));
|
|
93
|
-
process.on('uncaughtException', err => {
|
|
94
|
-
exceptionLogger.fatal({ err }, 'Uncaught exception');
|
|
95
|
-
process.exit(1);
|
|
96
|
-
});
|
|
97
|
-
process.on('unhandledRejection', reason => {
|
|
98
|
-
exceptionLogger.fatal({ reason }, 'Unhandled rejection');
|
|
99
|
-
process.exit(1);
|
|
100
|
-
});
|
|
101
|
-
}
|
|
12
|
+
constructor(clientConfigs) {
|
|
13
|
+
this.configs = clientConfigs || {};
|
|
14
|
+
this.logger = (0, pino_1.default)();
|
|
102
15
|
}
|
|
103
|
-
debug(message
|
|
104
|
-
this.logger.debug(
|
|
16
|
+
debug(message) {
|
|
17
|
+
this.logger.debug(message);
|
|
105
18
|
}
|
|
106
|
-
info(message, payload,
|
|
107
|
-
this.
|
|
19
|
+
info(message, payload, address = '0.0.0.0') {
|
|
20
|
+
const metadata = this.buildLog('info', payload, address);
|
|
21
|
+
this.logger.info(metadata, message);
|
|
108
22
|
}
|
|
109
|
-
warning(message, payload
|
|
110
|
-
this.
|
|
23
|
+
warning(message, payload) {
|
|
24
|
+
const metadata = this.buildLog('warn', payload);
|
|
25
|
+
this.logger.warn(metadata, message);
|
|
111
26
|
}
|
|
112
|
-
warn(message, payload
|
|
113
|
-
this.warning(message, payload
|
|
27
|
+
warn(message, payload) {
|
|
28
|
+
this.warning(message, payload);
|
|
114
29
|
}
|
|
115
|
-
error(message, payload
|
|
116
|
-
this.
|
|
30
|
+
error(message, payload) {
|
|
31
|
+
const metadata = this.buildLog('error', payload);
|
|
32
|
+
this.logger.error(metadata, message);
|
|
117
33
|
}
|
|
118
|
-
verbose(message
|
|
119
|
-
this.info(message
|
|
34
|
+
verbose(message) {
|
|
35
|
+
this.info(message);
|
|
120
36
|
}
|
|
121
37
|
setSessionId(sessionId) {
|
|
122
38
|
this.sessionId = sessionId;
|
|
@@ -124,12 +40,15 @@ class Logger {
|
|
|
124
40
|
setQuoteId(quoteId) {
|
|
125
41
|
this.quoteId = quoteId;
|
|
126
42
|
}
|
|
127
|
-
buildLog(payload,
|
|
43
|
+
buildLog(level, payload, address = '0.0.0.0') {
|
|
128
44
|
return {
|
|
45
|
+
...(this.configs ?? {}),
|
|
46
|
+
timestamp: new Date().toLocaleString(),
|
|
47
|
+
'remote-address': address,
|
|
48
|
+
level: level,
|
|
49
|
+
payload: payload,
|
|
129
50
|
sessionId: this.sessionId,
|
|
130
51
|
quoteId: this.quoteId,
|
|
131
|
-
'remote-address': remoteAddress,
|
|
132
|
-
payload,
|
|
133
52
|
};
|
|
134
53
|
}
|
|
135
54
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { LoggerService } from '@nestjs/common';
|
|
2
|
-
import { LoggerModuleOptions } from './interfaces/logger-module-options.interface';
|
|
3
2
|
import { Logger as LoggerImpl } from './log';
|
|
3
|
+
import { LoggerModuleOptions } from './interfaces/logger-module-options.interface';
|
|
4
4
|
export declare class Logger implements LoggerService {
|
|
5
5
|
private logger;
|
|
6
|
-
constructor(
|
|
6
|
+
constructor(config?: LoggerModuleOptions, logger?: LoggerImpl);
|
|
7
7
|
setSessionId(sessionId: string): void;
|
|
8
8
|
setQuoteId(quoteId: string): void;
|
|
9
9
|
log(message: string, payload?: string): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.class.d.ts","sourceRoot":"","sources":["../../../src/logger/logger.class.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"logger.class.d.ts","sourceRoot":"","sources":["../../../src/logger/logger.class.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AAEnF,qBAAa,MAAO,YAAW,aAAa;IAGxC,OAAO,CAAC,MAAM;gBADd,MAAM,CAAC,EAAE,mBAAmB,EACpB,MAAM,aAAyB;IAGzC,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAIrC,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAIjC,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI;IAI5C,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI;IAI7C,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI;IAI5C,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI;IAI7C,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAI5B,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;CAG/B"}
|
|
@@ -4,7 +4,7 @@ exports.Logger = void 0;
|
|
|
4
4
|
const log_1 = require("./log");
|
|
5
5
|
class Logger {
|
|
6
6
|
logger;
|
|
7
|
-
constructor(
|
|
7
|
+
constructor(config, logger = new log_1.Logger(config)) {
|
|
8
8
|
this.logger = logger;
|
|
9
9
|
}
|
|
10
10
|
setSessionId(sessionId) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.service.d.ts","sourceRoot":"","sources":["../../../src/logger/logger.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"logger.service.d.ts","sourceRoot":"","sources":["../../../src/logger/logger.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIhD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AAExF,qBACa,aAAa;IAIC,OAAO,CAAC,QAAQ,CAAC,aAAa;IAGrD,OAAO,CAAC,OAAO,CAAC;IANlB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;gBAGU,aAAa,EAAE,aAAa,EAG5D,OAAO,CAAC,EAAE,mBAAmB,YAAA;IAiBvC,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAIrC,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAIjC,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI;IAI5C,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI;IAI7C,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAI3C,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI;IAI7C,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAI5B,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;CAG/B"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LoggerService = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const config_1 = require("@edirect/config");
|
|
6
5
|
const common_1 = require("@nestjs/common");
|
|
6
|
+
const config_1 = require("@edirect/config");
|
|
7
7
|
const logger_class_1 = require("./logger.class");
|
|
8
8
|
const logger_module_definition_1 = require("./logger.module.definition");
|
|
9
9
|
let LoggerService = class LoggerService {
|
|
@@ -13,7 +13,17 @@ let LoggerService = class LoggerService {
|
|
|
13
13
|
constructor(configService, options) {
|
|
14
14
|
this.configService = configService;
|
|
15
15
|
this.options = options;
|
|
16
|
-
|
|
16
|
+
// TODO Preventing break changes. Once all services use the module register or registerAsync configuration update this part to not be necessary to get direct from @edirect/config
|
|
17
|
+
const envConfig = this.configService.getConfig();
|
|
18
|
+
const config = {
|
|
19
|
+
// TODO Turn output non options in LoggerModuleOptions after adpat all services to use this new logger module version
|
|
20
|
+
output: this.options?.output || envConfig.LOGS_OUTPUT || 'console',
|
|
21
|
+
// TODO Check if quote-engine is required in one of the microservices as default and change to get the default name from the logger module
|
|
22
|
+
name: this.options?.name || 'quote-engine',
|
|
23
|
+
host: this.options?.host || envConfig.LOGS_HOST,
|
|
24
|
+
};
|
|
25
|
+
// TODO After adapt all the services to the new Logger Module version use the LoggerModuleOptions directly to setup the module
|
|
26
|
+
this.logger = new logger_class_1.Logger(config);
|
|
17
27
|
}
|
|
18
28
|
setSessionId(sessionId) {
|
|
19
29
|
this.logger.setSessionId(sessionId);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edirect/logger",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.28",
|
|
4
4
|
"packageScope": "@edirect",
|
|
5
5
|
"main": "./dist/src/index.js",
|
|
6
6
|
"types": "./dist/src/index.d.ts",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@nestjs/common": "^11.1.6",
|
|
21
|
-
"pino": "9.9.
|
|
21
|
+
"pino": "9.9.4",
|
|
22
22
|
"supertest": "7.1.4",
|
|
23
23
|
"tslib": "^2.8.1",
|
|
24
|
-
"@edirect/config": "11.0.
|
|
24
|
+
"@edirect/config": "11.0.28"
|
|
25
25
|
},
|
|
26
26
|
"nx": {
|
|
27
27
|
"name": "@edirect/logger",
|