Closed wtchangdm closed 1 year ago
This logger is configuration of pino-pretty
, check out the source code: https://github.com/fastify/one-line-logger/blob/master/src/index.js.
If you want to customize this, it's easy to fork and adapt to your needs.
Sure, thanks @mcollina
Prerequisites
🚀 Feature Proposal
Hi, I am developing some sort of proxy for internal use. This logger is a good fit for users who want to try on their local environment for better readability.
However, the default format doesn't append request id, which could make user slightly harder to identify the request.
Motivation
Showing request id can be useful to identify what's happening during a specific request. However, when request id is rather long (e.g., front-end proxy sent a
request-id
header), it can be noisy.Please let me know what do you think!
Example
Instead of:
Maybe we could use: