NestJS · Senior · Question 34 of 75

How do you make Nest's logs structured and correlated?

Explanation

NestFactory.create(AppModule, { bufferLogs: true }) then app.useLogger(...) captures logs from the bootstrap phase too.

Further reading

Problem with a question

NestJS · Senior · question 34

Test yourself

Take the NestJS · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz