|
ProtoCore v0.0.2
Deterministic, zero-heap network stack for embedded targets
|
Fixed-RAM rotating log buffer with severity traps (PC_ENABLE_LOGBUF). More...
Go to the source code of this file.
Fixed-RAM rotating log buffer with severity traps (PC_ENABLE_LOGBUF).
Keeps the last PC_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.