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 syslog output + message logging #59

Merged
merged 5 commits into from
May 31, 2024
Merged

Conversation

bkueng
Copy link
Collaborator

@bkueng bkueng commented May 15, 2024

  • Adds a --syslog cli flag to enable logging to syslog
  • Adds a trace log level and changes the very verbose log_debug's to log_trace
  • Adds debug logging for certain messages: mavlink commands, shell commands and heartbeats (on connect & on disconnect), including source IP/UART

Example output:

mavlink-routerd[219210]: New heartbeat: 10.41.1.2 (compid: 190), type: 6
mavlink-routerd[219210]: mavlink_command_long: src: 10.41.1.2, compid: 190, cmd: 401, target: 1, params: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
mavlink-routerd[219210]: Heartbeat timeout: 10.41.1.2 (compid: 190)

… runs mavlink router. Adds a file for auterionos version writing to the ulog file"

This reverts commit 20f2715.
The default is still output to stderr. Syslog output can be activated via
--syslog/-s flag.
The systemd service is changed to use syslog.
…eartbeats using log_debug

With the IP/UART source as well, which can be used to find the IP source
of mavlink or shell commands.
@bkueng bkueng requested review from potaito and asimopunov May 15, 2024 14:22
Copy link

@asimopunov asimopunov left a comment

Choose a reason for hiding this comment

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

LGTM!

@bkueng bkueng merged commit 991b706 into auterion-router-latest May 31, 2024
1 check passed
@bkueng bkueng deleted the logging branch May 31, 2024 09:18
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