nestjs-pino 2.2.0-alpha.e7e455 → 2.2.0-alpha.ef9e45
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 +4 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -443,16 +443,16 @@ 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
|
|
446
|
+
Note that for [standalone applications](https://docs.nestjs.com/standalone-applications), buffering has to be [flushed using app.flushLogs()](https://github.com/nestjs/nest/blob/24e6c821a0859448646fd88831f20e4c5ae50980/packages/core/nest-application-context.ts#L136) 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
447
|
|
|
448
448
|
```ts
|
|
449
449
|
// main.ts
|
|
450
450
|
import { Logger } from 'nestjs-pino';
|
|
451
|
-
|
|
452
|
-
// ...
|
|
451
|
+
|
|
452
|
+
// ...
|
|
453
453
|
const app = await NestFactory.createApplicationContext(AppModule, { bufferLogs: true });
|
|
454
454
|
app.useLogger(app.get(Logger));
|
|
455
|
-
|
|
455
|
+
app.flushLogs();
|
|
456
456
|
// ...
|
|
457
457
|
```
|
|
458
458
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nestjs-pino",
|
|
3
|
-
"version": "2.2.0-alpha.
|
|
3
|
+
"version": "2.2.0-alpha.ef9e45",
|
|
4
4
|
"description": "Pino logger for NestJS",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"eslint-config-prettier": "^8.3.0",
|
|
56
56
|
"eslint-plugin-import": "^2.24.2",
|
|
57
57
|
"eslint-plugin-prettier": "^4.0.0",
|
|
58
|
-
"jest": "27.
|
|
58
|
+
"jest": "27.3.1",
|
|
59
59
|
"memorystream": "^0.3.1",
|
|
60
60
|
"pino-http": "^5.6.0",
|
|
61
61
|
"prettier": "^2.3.2",
|