Forwards logs to the server if server supports it #162

Open
opened 2026-04-05 17:52:02 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @jabberrock on 11/11/2024

  1. Adds a new class LogQueue which stores up to a fixed number of log messages in a circular buffer. It stores up to 30 pending log messages of max 255B each which takes up 7.4K of statically allocated memory. There is no dynamic allocation.
  2. Whenever Logger is called, the log message is pushed into the LogQueue.
  3. Whenever the Connection loop is run, it will try to send one pending message to the server.

Note that sending logs is best-effort since it's over UDP.

Related PRs:
https://github.com/SlimeVR/SolarXR-Protocol/pull/153
https://github.com/SlimeVR/SlimeVR-Server/pull/1234

image

*Originally created by @jabberrock on 11/11/2024* 1. Adds a new class LogQueue which stores up to a fixed number of log messages in a circular buffer. It stores up to 30 pending log messages of max 255B each which takes up 7.4K of statically allocated memory. There is no dynamic allocation. 2. Whenever Logger is called, the log message is pushed into the LogQueue. 3. Whenever the Connection loop is run, it will try to send one pending message to the server. Note that sending logs is best-effort since it's over UDP. Related PRs: https://github.com/SlimeVR/SolarXR-Protocol/pull/153 https://github.com/SlimeVR/SlimeVR-Server/pull/1234 ![image](https://github.com/user-attachments/assets/424468a6-c1ca-4430-ab64-09edbcd5967c)
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/SlimeVR-Tracker-ESP#162