Skip to content

Commit 4fd3e7b

Browse files
Update migration.md
1 parent c3359d6 commit 4fd3e7b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

content/migration.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,24 @@ Instead, simply use the `listen()` and `startAllMicroservices()` methods (they a
3333
The `@nestjs/platform-socket.io` package was upgraded to use the `[email protected]` version (Nest v7 was based on the `socket.io` v2).
3434
To learn more, check out these articles: [Socket.io 3 Release](https://socket.io/blog/socket-io-3-release/) and [Socket.io 4 Release](https://socket.io/blog/socket-io-4-release/).
3535

36+
37+
#### Logger breaking changes
38+
39+
For better extensibility, we separated out the `Logger` and `ConsoleLogger` classes ([PR](https://github.com/nestjs/nest/pull/6221), learn more in the [Logging](/techniques/logging) chapter). If your application uses a custom logger class that extends the built-in `Logger`, you should update it to extend the `ConsoleLogger` now.
40+
41+
Before:
42+
43+
```typescript
44+
export class MyLogger extends Logger {}
45+
```
46+
47+
Now:
48+
49+
```typescript
50+
export class MyLogger extends ConsoleLogger {}
51+
```
52+
53+
3654
#### `@nestjs/config` package
3755

3856
There was a minor breaking change in the `registerAs` function (typings), you can see what has changed in [this PR](https://github.com/nestjs/config/pull/173).

0 commit comments

Comments
 (0)