NestJS · Junior · Question 58 of 75
Which built-in logger does Nest provide?
- ✓Correct answer: The
Loggerclass from@nestjs/common, which can be replaced with a custom logger - 2Winston is built in
- 3None; you must use
console.log
Explanation
Create one per class with new Logger(UsersService.name). For production, many teams plug in Pino or Winston, or use JSON output.