express-pino-logger
express-pino-logger copied to clipboard
how to remove this "REQUEST COMPLETED" from pino
How do you remove the request and response from pino? It seems too long and unnecessary. I redacted both but is there another way to remove this? I didn't get this until I was creating a test.
Redacted both but it's annoying.
Thank you much.
if you are talking about how to remove redacted field, you can add additional option called remove
to redacted
{ redact: {paths: ['req', 'res'], remove: true } }
but as for the message in color, i think it's because you are using pretty-print and it's related to that package. maybe you should see the docs for that package. hopefully, there is an option that does that just