iamolegga / nestjs-pino

Platform agnostic logger for NestJS based on Pino with REQUEST CONTEXT IN EVERY LOG
MIT License
1.26k stars 98 forks source link

[BUG] doesn't print logs from middleware, interceptor and exception filter #1372

Closed ianzone closed 1 year ago

ianzone commented 1 year ago

What is the current behavior? doesn't print logs in middleware, interceptor, and exception filter. and it doesn't print the class name from where it's injected.

What is the expected behavior? print out logs from middleware, interceptor and exception filter, and also indicate from which class.

Please provide a minimal example repo, not a code snippet. Without an example repo this issue will be closed. https://github.com/ianzone/lambda-nestify/tree/master

Please mention other relevant information such as Node.js version and Operating System. node v18.12.0 OS: Ubuntu 22.04.2 LTS on Windows 10 x86_64 Kernel: 5.15.90.1-microsoft-standard-WSL2

iamolegga commented 1 year ago

closing. A MINIMAL example repo should be provided

ianzone commented 1 year ago

I did provide the repo. image

ianzone commented 1 year ago

you could pnpm i -g @antfu/ni @nestjs/cli ni nr dev and then hit any route to see the log

ianzone commented 1 year ago

closing. A MINIMAL example repo should be provided

please see above msg

iamolegga commented 1 year ago

sorry, but I won't install some third party global modules just to check this particular case.

https://en.wikipedia.org/wiki/Minimal_reproducible_example https://minimum-reproduction.wtf/