TLDR Dev · ARTICLES & TUTORIALS
CUT YOUR FASTIFY LOG VOLUME WITH LOGCONTROLLER
Summary from the TLDR Dev newsletter
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.