-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document log redaction #1255
Document log redaction #1255
Conversation
test/logger.test.js
Outdated
stream.once('data', listenAtLogLine => { | ||
t.ok(listenAtLogLine, 'listen at log message is ok') | ||
stream.once('data', line => { | ||
t.equal(line.req.headers.authorization, '[Redacted]', 'authoriztion is redacted') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo in authoriztion
docs/Logging.md
Outdated
|
||
[Pino](https://getpino.io) supports low-overhead log redaction, to | ||
filter out some of properties. As an example, if logging all the HTTP | ||
headers is needed, we must redact and filter out the `Authorization` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the sentence is wrong because if we want to log all headers we do nothing.
@StarpTech @jsumners updated. |
docs/Logging.md
Outdated
|
||
## Log Redaction | ||
|
||
[Pino](https://getpino.io) supports low-overhead log redaction, to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log redaction, to obscure
-> log redaction for obscuring
PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Log redaction is a key new feature of pino v5, and it's better to highligh it.
Checklist
npm run test
andnpm run benchmark