In this chapter, we have discussed the importance of logging and how to focus on improving this feature. We have explored many new Fastify options to enhance the readability of the application’s logs. You now have a complete overview of the
pino module and know how to customize it based on your system’s architecture.
We have successfully configured the log’s redaction to secure our log files and hide sensitive data, which is one of the hardest things to do, but we still made it easy, thanks to Fastify’s ready-to-use toolchain in production.
You have read about some architectural patterns to collect the logs in a complex scenario and the aspects you need to consider when dealing with logs.
You are ready to proceed to Chapter 12, where you will learn how to split our application into smaller and independent pieces.