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

light: syslog source #558

Merged
merged 12 commits into from
Mar 26, 2025
Merged

light: syslog source #558

merged 12 commits into from
Mar 26, 2025

Conversation

alltilla
Copy link
Member

@alltilla alltilla commented Mar 26, 2025

We already had a SyslogSource, but it did not send the logs with framing, so this PR fixes that.

I also observed that the "log" entity all throughout Light is not separated well from some transport specific details, like \n delimiting in case of network and file drivers (\n was considered part of the log, but it is in reality a delimiter in case of network and file sources), I also fixed these.

Note: This change breaks the tests, but the next
commit will fix it

Signed-off-by: Attila Szakacs <[email protected]>
@alltilla alltilla requested a review from mitzkia March 26, 2025 09:25
When we configure auto transport to a source, Light cannot
know what transport should be used to send a log to that
source. For this I have also introduced a transport arg
to write_log().

Signed-off-by: Attila Szakacs <[email protected]>
Similar to transport.

Signed-off-by: Attila Szakacs <[email protected]>
@alltilla alltilla force-pushed the light-syslog-source branch from 018790a to e336c93 Compare March 26, 2025 09:52
@alltilla alltilla force-pushed the light-syslog-source branch from e336c93 to 9892b63 Compare March 26, 2025 09:56
It is not intended to be used by the user, the
correct way is to use log related functions.

Signed-off-by: Attila Szakacs <[email protected]>
Copy link
Contributor

@mitzkia mitzkia left a comment

Choose a reason for hiding this comment

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

Thanks for the huge refactor. Approved

@mitzkia mitzkia merged commit bff69a5 into axoflow:main Mar 26, 2025
22 checks passed
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.

2 participants