Skip to content
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

Merged
merged 3 commits into from
Nov 25, 2018
Merged

Document log redaction #1255

merged 3 commits into from
Nov 25, 2018

Conversation

mcollina
Copy link
Member

Log redaction is a key new feature of pino v5, and it's better to highligh it.

Checklist

  • run npm run test and npm run benchmark
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message and code follows Code of conduct

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')
Copy link
Member

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`
Copy link
Member

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.

docs/Logging.md Outdated Show resolved Hide resolved
docs/Logging.md Outdated Show resolved Hide resolved
@delvedor delvedor added the documentation Improvements or additions to documentation label Nov 19, 2018
@mcollina
Copy link
Member Author

@StarpTech @jsumners updated.

docs/Logging.md Outdated

## Log Redaction

[Pino](https://getpino.io) supports low-overhead log redaction, to
Copy link
Contributor

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

@mcollina
Copy link
Member Author

PTAL

Copy link
Member

@jsumners jsumners left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@delvedor delvedor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@cemremengu cemremengu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@delvedor delvedor merged commit 6826448 into next Nov 25, 2018
@delvedor delvedor deleted the document-log-redaction branch November 25, 2018 20:32
@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants