TLDR Tech / Dev
Cut your Fastify log volume with logController
A Fastify health check polled every 5 seconds produces over a million log lines a month, but Fastify already has two built-in fixes rather than needing a new core option. The quick one is registering noisy routes in a plugin with logLevel: 'silent', though that mutes your own logs and failures too. The flexible one is subclassing LogController and overriding only the methods for the lines you care about.
Read the full story