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

Add a basic syslog appender #1523

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

willtoth
Copy link
Contributor

@willtoth willtoth commented Nov 5, 2024

This commits allows photonvision to push logs to a remote syslog server such as the one on the roboRIO. To enable this on the RIO create a file in /etc/syslog-ng.d/ for example

@version: 3.8

source s_net { tcp(ip(0.0.0.0) port(514) max-connections (5000)); udp(); };
destination d_syslog { file("/var/log/remotesyslog"); };

log { source(s_net); destination(d_syslog); };

This is experimental. Also I grabbed the first syslog java library I could find. There may be other options if needed.

This commits allows photonvision to push logs to a remote syslog
server such as the one on the roboRIO. To enable this on the RIO
create a file in /etc/syslog-ng.d/ for example

@Version: 3.8

source s_net { tcp(ip(0.0.0.0) port(514) max-connections (5000)); udp(); };
destination d_syslog { file("/var/log/remotelogs/syslog"); };

log { source(s_net); destination(d_syslog); };

This is experimental
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