How to tell TypeORM to use different logger (pino in this case)?

Viewed 983

I am using NestJS, TypeORM, pino and nestjs-pino.

I need pino for my logs to be in JSON format, so that Google Cloud Logging can parse the logs.

However, TypeORM logs are not in JSON format. They still somehow use their own logger.

Is it possible to tell TypeORM to use the nestjs-pino logger instead of its own?

1 Answers
Related