express-pino-logger icon indicating copy to clipboard operation
express-pino-logger copied to clipboard

how to remove this "REQUEST COMPLETED" from pino

Open artoodeeto opened this issue 2 years ago • 1 comments

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.

Screen Shot 2021-07-31 at 7 45 40 PM

Redacted both but it's annoying.

Thank you much.

artoodeeto avatar Aug 01 '21 03:08 artoodeeto

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

outranker avatar Sep 01 '21 07:09 outranker