pinojs / koa-pino-logger

🌲 pino logging koa middleware
MIT License
94 stars 27 forks source link

Modify default logging strategy #52

Open gestrada-kr opened 2 years ago

gestrada-kr commented 2 years ago

I'm looking at the default request/response logs coming from the logger and it just includes everything from the request and response, which is not the best scenario for us as some headers might include PII. How do I intercept or modify the default logger to remove or cherry pick which fields I want?

Is it better to ditch this and just use Pino and write our own logger middleware?