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

feat: add journald-friendly log format #295

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

michaeladler
Copy link
Member

Description

Pass structured log data to journald using its native protocol [1].

[1] https://systemd.io/JOURNAL_NATIVE_PROTOCOL/

Issues Addressed

List and link all the issues addressed by this PR.

Change Type

Please select the relevant options:

  • Bug fix (non-breaking change that resolves an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist

  • I have read the CONTRIBUTING document.
  • My changes adhere to the established code style, patterns, and best practices.
  • I have added tests that demonstrate the effectiveness of my changes.
  • I have updated the documentation accordingly (if applicable).
  • I have added an entry in the CHANGELOG to document my changes (if applicable).

Pass structured log data to journald using its native protocol [1].

[1] https://systemd.io/JOURNAL_NATIVE_PROTOCOL/

Signed-off-by: Michael Adler <[email protected]>
@michaeladler michaeladler requested a review from stormc as a code owner February 24, 2025 15:24
Copy link

codecov bot commented Feb 24, 2025

Codecov Report

Attention: Patch coverage is 50.00000% with 6 lines in your changes missing coverage. Please review.

Project coverage is 70.28%. Comparing base (8cc2b1f) to head (be3b387).

Files with missing lines Patch % Lines
cmd/wfx/cmd/root/setup.go 45.45% 4 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #295      +/-   ##
==========================================
- Coverage   70.34%   70.28%   -0.06%     
==========================================
  Files          99       99              
  Lines        4899     4906       +7     
==========================================
+ Hits         3446     3448       +2     
- Misses       1226     1229       +3     
- Partials      227      229       +2     

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

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.

1 participant