next-rest-framework
next-rest-framework copied to clipboard
Add logging
Pino could do a good job.
Yeah I think the existing logging could be improved for sure. What kind of information would you expect to see logged by the framework?
Something more on the lines of how NestJS manages em. For production, they throw JSON in the terminal. For dev, it's formatted.
https://docs.nestjs.com/techniques/logger
Mostly we see: Status code Route Time hit User Agent Response
With the right colors.
Something more on the lines of how NestJS manages em. For production, they throw JSON in the terminal. For dev, it's formatted.
https://docs.nestjs.com/techniques/logger
Mostly we see: Status code Route Time hit User Agent Response
With the right colors.
Seems reasonable. I could look into this at some point, keeping this issue open for now.