Skip to content

allow customizing logfmt standard keys #16

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

Merged
merged 4 commits into from
May 30, 2024
Merged

Conversation

ericphanson
Copy link
Member

as mentioned on Slack, this can be used to make simpler/cleaner logs in cases where you don't need module, group, id, etc, and are reading the logs directly rather than via an aggregator. I went for "fully customizable" (i.e. order + which keys) rather than special casing some (e.g. you probably always want msg, but might as well make it customizable).

@ericphanson ericphanson requested a review from fredrikekre April 1, 2024 22:50
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.18%. Comparing base (14d6f24) to head (6900c63).
Report is 1 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #16      +/-   ##
==========================================
+ Coverage   93.67%   94.18%   +0.51%     
==========================================
  Files           1        1              
  Lines          79       86       +7     
==========================================
+ Hits           74       81       +7     
  Misses          5        5              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ericphanson ericphanson mentioned this pull request Apr 1, 2024
@ericphanson ericphanson merged commit 861a07f into master May 30, 2024
5 checks passed
@ericphanson ericphanson deleted the eph/optional-keys branch May 30, 2024 15:38
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