nestjs-pino 2.2.0-alpha.f6cdfd → 2.2.0
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/README.md +2 -13
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -443,19 +443,6 @@ import { Logger } from 'nestjs-pino';
|
|
|
443
443
|
// ...
|
|
444
444
|
```
|
|
445
445
|
|
|
446
|
-
Note that for [standalone applications](https://docs.nestjs.com/standalone-applications), buffering has to be disabled manually after custom logger is ready to be used by NestJS (refer to [this issue](https://github.com/iamolegga/nestjs-pino/issues/553) for more details):
|
|
447
|
-
|
|
448
|
-
```ts
|
|
449
|
-
// main.ts
|
|
450
|
-
import { Logger } from 'nestjs-pino';
|
|
451
|
-
import { Logger as BaseLogger } from '@nestjs/common';
|
|
452
|
-
// ...
|
|
453
|
-
const app = await NestFactory.createApplicationContext(AppModule, { bufferLogs: true });
|
|
454
|
-
app.useLogger(app.get(Logger));
|
|
455
|
-
BaseLogger.flush();
|
|
456
|
-
// ...
|
|
457
|
-
```
|
|
458
|
-
|
|
459
446
|
In all the other places you can use built-in `Logger`:
|
|
460
447
|
|
|
461
448
|
```ts
|
|
@@ -558,6 +545,8 @@ All the other cases are lead to either code duplication or unexpected behavior.
|
|
|
558
545
|
|
|
559
546
|
<h2 align="center">Do you use this library?<br/>Don't be shy to give it a star! ★</h2>
|
|
560
547
|
|
|
548
|
+
---
|
|
549
|
+
|
|
561
550
|
Also if you are into NestJS ecosystem you may be interested in one of my other libs:
|
|
562
551
|
|
|
563
552
|
[nestjs-pino](https://github.com/iamolegga/nestjs-pino)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nestjs-pino",
|
|
3
|
-
"version": "2.2.0
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Pino logger for NestJS",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"eslint": "^7.32.0",
|
|
55
55
|
"eslint-config-prettier": "^8.3.0",
|
|
56
56
|
"eslint-plugin-import": "^2.24.2",
|
|
57
|
-
"eslint-plugin-prettier": "^4.
|
|
58
|
-
"jest": "27.
|
|
57
|
+
"eslint-plugin-prettier": "^3.4.1",
|
|
58
|
+
"jest": "27.1.0",
|
|
59
59
|
"memorystream": "^0.3.1",
|
|
60
60
|
"pino-http": "^5.6.0",
|
|
61
61
|
"prettier": "^2.3.2",
|