M

fastify/5/rename-logger-to-logger-instance

How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

This codemod updates the Fastify logger configuration by renaming the logger option to loggerInstance, in line with Fastify v5 changes.

Before

ts

After

ts

This example shows how the codemod modifies the logger option to loggerInstance, aligning with the updated configuration practices in Fastify v5.

Ready to contribute?

Build your own codemod and share it with the community.