Skip to content

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

@melroy89

Description

@melroy89

This codemod recipe is changing logger to loggerInstance, but I believe even in Fastify v5 the normal logger is perfectly valid and still fine to use? https://fastify.dev/docs/latest/Reference/Logging/#enable-logging

The only reason if you want to use loggerInstance is when you want to use a custom logger (which has the same interface as Pino).. But normally you still want to use logger..

Did you know that? If so, maybe that should be documented better.

I also strongly believe this recipe should be removed from https://app.codemod.com/registry/fastify/5/migrationRecipe as well..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions