|
DeterministicESPAsyncWebServer v6.28.0
Zero-allocation, bounded-execution async HTTP server for ESP32
|
Fixed-RAM rotating log buffer with severity traps (DETWS_ENABLE_LOGBUF). More...
Go to the source code of this file.
Fixed-RAM rotating log buffer with severity traps (DETWS_ENABLE_LOGBUF).
Keeps the last DETWS_LOG_LINES log lines in a fixed ring (the oldest is pruned on overflow - no heap, bounded latency), each line stored as <L> message where L is the severity letter. Dump the ring oldest-first for a /logs endpoint, and register a trap callback that fires when a line is logged at or above a severity threshold (forward criticals as an SNMP trap / webhook). Pure and fully host-tested - no ESP32 dependency.
Definition in file logbuf.h.