unnbound-logger-sdk 2.0.3 → 2.0.4
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/unnbound-logger.js +4 -4
- package/package.json +1 -1
package/dist/unnbound-logger.js
CHANGED
|
@@ -343,7 +343,7 @@ class UnnboundLogger {
|
|
|
343
343
|
body: (0, logger_utils_1.safeJsonParse)(req.body),
|
|
344
344
|
},
|
|
345
345
|
};
|
|
346
|
-
this.
|
|
346
|
+
this.log(options.level || 'info', logEntry);
|
|
347
347
|
return requestId;
|
|
348
348
|
}
|
|
349
349
|
/**
|
|
@@ -383,7 +383,7 @@ class UnnboundLogger {
|
|
|
383
383
|
body: (0, logger_utils_1.safeJsonParse)(res.locals.body),
|
|
384
384
|
},
|
|
385
385
|
};
|
|
386
|
-
this.
|
|
386
|
+
this.log(level, logEntry);
|
|
387
387
|
}
|
|
388
388
|
/**
|
|
389
389
|
* Logs an SFTP transaction
|
|
@@ -404,7 +404,7 @@ class UnnboundLogger {
|
|
|
404
404
|
duration,
|
|
405
405
|
sftp: operation,
|
|
406
406
|
};
|
|
407
|
-
this.
|
|
407
|
+
this.log(level, logEntry);
|
|
408
408
|
}
|
|
409
409
|
/**
|
|
410
410
|
* Logs a database query transaction
|
|
@@ -425,7 +425,7 @@ class UnnboundLogger {
|
|
|
425
425
|
duration,
|
|
426
426
|
db: query,
|
|
427
427
|
};
|
|
428
|
-
this.
|
|
428
|
+
this.log(level, logEntry);
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
431
|
exports.UnnboundLogger = UnnboundLogger;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unnbound-logger-sdk",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "A structured logging library with TypeScript support using Pino. Provides consistent, well-typed logging across different operational contexts with automatic trace ID propagation.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|