|
ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
|
Fixed-RAM rotating log buffer with severity traps (PROTOCORE_ENABLE_LOGBUF). More...
#include "protocore_config.h"Go to the source code of this file.
Fixed-RAM rotating log buffer with severity traps (PROTOCORE_ENABLE_LOGBUF).
Keeps the last PROTOCORE_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 vendor dependency.
Definition in file logbuf.h.