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

chore(server/logging): use message template instead of string formatting #3638

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

iainsproat
Copy link
Contributor

@iainsproat iainsproat commented Dec 5, 2024

Pino & seq support message templates.
Without message templates, it is difficult to filter messages in seq because the cardinality of messages is high.
This PR uses message template format for logs.
This reduces the cardinality of messages, to allow simpler filtering in seq.

Description & motivation

Changes:

To-do before merge:

Screenshots:

Validation of changes:

Checklist:

  • My pull request follows the guidelines in the Contributing guide?
  • My pull request does not duplicate any other open Pull Requests for the same update/change?
  • My commits are related to the pull request and do not amend unrelated code or documentation.
  • My code follows a similar style to existing code.
  • I have added appropriate tests.
  • I have updated or added relevant documentation.

References

…ting

- reduce the cardinality of messages, to allow filtering by message template
Copy link
Contributor

github-actions bot commented Dec 5, 2024

📸 Preview service has generated an image.

@iainsproat iainsproat changed the title chore(server/logging): use message template instead of runtime format… chore(server/logging): use message template instead of string formatting Dec 5, 2024
@cdriesler cdriesler self-requested a review December 5, 2024 12:00
@iainsproat iainsproat marked this pull request as ready for review December 5, 2024 12:02
@iainsproat iainsproat merged commit 083999d into main Dec 5, 2024
28 of 30 checks passed
@iainsproat iainsproat deleted the iain/logging-objects-use-message-template branch December 5, 2024 12:02
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.

3 participants