-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat(codecs): Add syslog encoder #21307
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
Open
polarathene
wants to merge
16
commits into
vectordotdev:master
Choose a base branch
from
polarathene:feat/syslog-codec
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
1ddf6af
feat: Add syslog codec
syedriko 7407f7b
chore: Split syslog encoder into separate files
polarathene c9aacd9
refactor: Syslog facility and severity
polarathene d03c87f
refactor: `SyslogSerializer`
polarathene 0288a80
refactor: `SyslogSerializerConfig`
polarathene 1049ebd
chore: Merge back into `syslog.rs`
polarathene 3cdc1b4
feat: Add StructuredData support to Syslog encoder
polarathene 3001b67
chore: Housekeeping
polarathene f8be8d9
chore: DRY `into_variant()` via `akin` crate
polarathene 5360287
chore: Minor revisions
polarathene 38d0d61
chore: Switch from `DateTime<Local>` to `DateTime<Utc>`
polarathene 7ef97fb
chore: Adopt a separate options config struct + minor revisions
polarathene 34e735d
chore: Switch from `String` to deserialize `Facility` + `Severity` enums
polarathene 2ac3da2
fix: Support deserializing config value that is a number type
polarathene 7ba64be
chore: Add doc comments for enum variants to appease Vector requirement
polarathene ed202bb
chore: Use `snafu` for error message
polarathene File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to know if there's any policies about the additional crate deps I've added to support the PR. They're all marked optional and assigned to the
syslog
feature.I could minimize the deps but it'd make the feature code itself less maintainer friendly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally if it is needed and the license is ok then we are fine to pull it in like you have done here.
However, I don't really see that this crate is adding enough to warrant it's inclusion. It's only used in one place from what I can see. There it would be more idiomatic to just use a simple macro: