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

Add custom logging hooks #366

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Add custom logging hooks #366

wants to merge 4 commits into from

Conversation

nicola88
Copy link

As discussed in the linked issue, I updated the documentation and tests to customize Pino hooks and intercept and manipulate logging arguments, which will be used for audit logs.

The current version of lc39 already allows to pass the custom hook in the hooks field of the Pino logger options, so no specific change was required.

Checklist

  • your branch will not cause merge conflict with master
  • run npm test
  • tests are included
  • the documentation is updated or integrated accordingly with your changes
  • the code will follow the lint rules and style of the project
  • you are not committing extraneous files or sensible data

Copy link
Member

@fredmaggiowski fredmaggiowski left a comment

Choose a reason for hiding this comment

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

LGTM

CHANGELOG.md Outdated Show resolved Hide resolved
@fredmaggiowski fredmaggiowski linked an issue May 3, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use pino logMethod hook to format audit logs
2 participants