we don't need to differentiate between prod/console loggers due to how pino implements it as a transport (thx pino) so we removed the whole logger folder.
additionally, we shifted the prettifying to be on the cli side so that there's no logic at the code level.
Solution
shift conditional to just invoking via cli
set logInjection to be dynamic based on the env as otherwise the dd object would be appended to every single pino log to the console
Problem
we don't need to differentiate between prod/console loggers due to how pino implements it as a transport (thx pino) so we removed the whole logger folder.
additionally, we shifted the prettifying to be on the cli side so that there's no logic at the code level.
Solution
logInjection
to be dynamic based on the env as otherwise the dd object would be appended to every single pino log to the console