-
Notifications
You must be signed in to change notification settings - Fork 64
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
[Request] Logging console message to syslog #1194
Comments
I was thinking about the same thing but i dont see that a lot of people will use that to be honest. |
Upstream issue: tbnobody#1819 Upstream pull request: tbnobody#2280 |
@ranma thanks for implementing this. I did not spot your earlier issue downstream, sorry. |
Me, too.
I think that four people is far enough 😁 The upstream PR is ready, is it not? Can you rebase that branch onto our development branch and open a PR? If this "just works", I am happy to merge it. I guess you have to put in some work as MessageOutputClass looks very different in the upstream? I would be oven more interested in logging the serial console itself, as it (and only it) includes backtraces, but even the log should be interesting. |
I did some very limited research and it turns out that, despite its drawbacks, syslog seems to be the best option for this purpose. I wan concerned that we should not introduce such old and untrusted stuff, but I guess it's the best option? Please tell me if you think otherwise. |
You can hook the system log messages by calling |
Done. |
Fixed in 20159f3 |
Is your feature request related to a problem? Please describe.
Grabbing log messages from the web UI is cumbersome and I'd like to have a continuously running log sink.
Describe the solution you'd like
It would be nice if a syslog address could be configured and console message could be sent to a syslog-compatible sink in addition to the web UI.
https://datatracker.ietf.org/doc/html/rfc5424
Describe alternatives you've considered
Send log messages over MQTT
Additional context
Syslog is a commonly-supported logging destination for embedded systems
The text was updated successfully, but these errors were encountered: