DeterministicESPAsyncWebServer v6.28.0
Zero-allocation, bounded-execution async HTTP server for ESP32
Loading...
Searching...
No Matches
logbuf.h File Reference

Fixed-RAM rotating log buffer with severity traps (DETWS_ENABLE_LOGBUF). More...

#include "ServerConfig.h"
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Detailed Description

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.

Author
Douglas Quigg (dstroy0)
Date
2026

Definition in file logbuf.h.