Instantiate Pino Logger Based on Env Var

I want to use pino as a logger, I don't understand how to instantiate it according to a env var
Was this page helpful?