Open deeeed opened 2 years ago
I think for Nest logger, you need to override the custom implementation as seen here, the logger is already created at runtime during init. I am not really sure how pino-logger somehow overrides the nest logger at runtime.
I am tryng to figure out why after replacing the default nest logger with pino logger, my nest-keycloak-connect logs aren't displayed to the console. Here is how I instanciate my module:
Before the custom pino logger takes over I can see the logs in the console during startup:
If I leave useNestLogger: true, I won't be able to see the logs from nest-keycloak-connnect. Looking at the code, it just uses Logger from nestjs/common which is what I use in the my app without issue. Any idea why it wouldn't work with the package?