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?
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?