@navios/core 0.1.12 → 0.1.14
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/_tsup-dts-rollup.d.mts +9 -0
- package/dist/_tsup-dts-rollup.d.ts +9 -0
- package/dist/index.js +1336 -1308
- package/dist/index.mjs +1334 -1306
- package/package.json +3 -3
- package/src/logger/console-logger.service.mts +41 -3
- package/src/service-locator/service-locator.mts +1 -0
- package/src/services/controller-adapter.service.mts +1 -1
|
@@ -191,6 +191,10 @@ declare class ConsoleLogger implements LoggerService {
|
|
|
191
191
|
* The context of the logger (can be set manually or automatically inferred).
|
|
192
192
|
*/
|
|
193
193
|
protected context?: string;
|
|
194
|
+
/**
|
|
195
|
+
* Request ID (if enabled).
|
|
196
|
+
*/
|
|
197
|
+
protected requestId: string | null;
|
|
194
198
|
/**
|
|
195
199
|
* The original context of the logger (set in the constructor).
|
|
196
200
|
*/
|
|
@@ -270,6 +274,7 @@ declare class ConsoleLogger implements LoggerService {
|
|
|
270
274
|
protected formatPid(pid: number): string;
|
|
271
275
|
protected formatContext(context: string): string;
|
|
272
276
|
protected formatMessage(logLevel: LogLevel, message: unknown, pidMessage: string, formattedLogLevel: string, contextMessage: string, timestampDiff: string): string;
|
|
277
|
+
protected getRequestId(): string;
|
|
273
278
|
protected stringifyMessage(message: unknown, logLevel: LogLevel): string;
|
|
274
279
|
protected colorize(message: string, logLevel: LogLevel): string;
|
|
275
280
|
protected printStackTrace(stack: string): void;
|
|
@@ -304,6 +309,10 @@ declare interface ConsoleLoggerOptions {
|
|
|
304
309
|
* Note: This option is not used when `json` is enabled.
|
|
305
310
|
*/
|
|
306
311
|
prefix?: string;
|
|
312
|
+
/**
|
|
313
|
+
* If enabled, will add a request ID to the log message.
|
|
314
|
+
*/
|
|
315
|
+
requestId?: boolean;
|
|
307
316
|
/**
|
|
308
317
|
* If enabled, will print the log message in JSON format.
|
|
309
318
|
*/
|
|
@@ -191,6 +191,10 @@ declare class ConsoleLogger implements LoggerService {
|
|
|
191
191
|
* The context of the logger (can be set manually or automatically inferred).
|
|
192
192
|
*/
|
|
193
193
|
protected context?: string;
|
|
194
|
+
/**
|
|
195
|
+
* Request ID (if enabled).
|
|
196
|
+
*/
|
|
197
|
+
protected requestId: string | null;
|
|
194
198
|
/**
|
|
195
199
|
* The original context of the logger (set in the constructor).
|
|
196
200
|
*/
|
|
@@ -270,6 +274,7 @@ declare class ConsoleLogger implements LoggerService {
|
|
|
270
274
|
protected formatPid(pid: number): string;
|
|
271
275
|
protected formatContext(context: string): string;
|
|
272
276
|
protected formatMessage(logLevel: LogLevel, message: unknown, pidMessage: string, formattedLogLevel: string, contextMessage: string, timestampDiff: string): string;
|
|
277
|
+
protected getRequestId(): string;
|
|
273
278
|
protected stringifyMessage(message: unknown, logLevel: LogLevel): string;
|
|
274
279
|
protected colorize(message: string, logLevel: LogLevel): string;
|
|
275
280
|
protected printStackTrace(stack: string): void;
|
|
@@ -304,6 +309,10 @@ declare interface ConsoleLoggerOptions {
|
|
|
304
309
|
* Note: This option is not used when `json` is enabled.
|
|
305
310
|
*/
|
|
306
311
|
prefix?: string;
|
|
312
|
+
/**
|
|
313
|
+
* If enabled, will add a request ID to the log message.
|
|
314
|
+
*/
|
|
315
|
+
requestId?: boolean;
|
|
307
316
|
/**
|
|
308
317
|
* If enabled, will print the log message in JSON format.
|
|
309
318
|
*/
|