Closed Leizhenpeng closed 2 years ago
@Leizhenpeng is this a limitation of nestjs and this doesn't work with other loggers or this is related only to current lib?
@Leizhenpeng this is just how the nestjs REPL behaves and, therefore, a limitation of it:
see that there's no chance to replace the logger as the app
created by repl()
(from @nestjs/core
) isn't public (https://github.com/nestjs/nest/blob/a448f53b7746d35bf25a18f1759c971e5b7fea1c/packages/core/repl/repl.ts#L11-L15).
Also, in your code below there's no link between the app
and repl(AppModule)
. I didn't understand why you expected any other behavior
I bet you could propose some non-breaking change on that repl
at https://github.com/nestjs/nest
There's nothing to do here @iamolegga :)
[x] I've read the docs of nestjs-pino
[x] I've read the docs of pino
[x] I couldn't find the same open issue of nestjs-pino
What is the current behavior?
What is the expected behavior? Logs will be produced by pino internally
Please provide minimal example repo. Without it this issue will be closed example Please mention other relevant information such as Node.js version and Operating System.