Add configurable remote syslog logging (UDP/514)#186
Open
czipis wants to merge 1 commit into
Open
Conversation
3d6eb3e to
2d4e42e
Compare
Forward ESP_LOG* lines to a user-configured remote syslog server over UDP port 514 (RFC 3164), toggled from /settings/network. - New components/syslog: NVS config (enabled + host), a FreeRTOS queue fed by the logger callback, and a sender task that frames RFC 3164 packets (facility "user", severity mapped from the ESP log level) and sendto()s them. Drop-newest on a full queue so logging never blocks. - logger: add logger_register_line_cb() so a consumer can receive every captured line without logger depending on the network stack. - protocols: REST GET/POST /api/v1/config/syslog + aggregate config. - main: syslog_init() after network_init(). Web UI sources are not tracked; the change is captured in remote-syslog-webui.patch (NetworkSettings.jsx + locales), placed between the Static IP and Discovery sections. web.cpio is intentionally not committed (rebuilt from the patch). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



Forward ESP_LOG* lines to a user-configured remote syslog server over UDP port 514 (RFC 3164), toggled from /settings/network.
Web UI sources are not tracked; the change is captured in remote-syslog-webui.patch (NetworkSettings.jsx + locales), placed between the Static IP and Discovery sections. web.cpio is intentionally not committed (rebuilt from the patch).
Description:
as part of this PR are changes to unpublished web sources, adding here the patch for the reverse engineered sources. They might need to be adjusted to actual undisclosed sources.
Related issue (if applicable): fixes # (issue)
Checklist:
Plase set Github secret WOKWI_CLI_TOKEN to run CI unit test in Wokwi simulator (https://docs.wokwi.com/wokwi-ci/github-actions)
NOTE: The code change must pass CI. Your PR cannot be merged unless CI pass