File SolidSyslogBufferCategories.h¶
FileList > Core > Interface > SolidSyslogBufferCategories.h
Portable category constants (uint16_t macros) for the Buffer role: SOLIDSYSLOG_CAT_BUFFER_BACKEND_FAILED and SOLIDSYSLOG_CAT_BUFFER_RECORDS_LOST.
#include <stdint.h>#include "SolidSyslogErrorCategory.h"
Macro Definition Documentation¶
SOLIDSYSLOG_CAT_BUFFER_BACKEND_FAILED¶
Portable Buffer-role error categories.
Any Buffer implementation reuses these; a portable handler switch on event->Category reacts to a buffer backend failure identically regardless of the underlying mechanism (POSIX message queue, ring...). The buffer's backend failed: a write or read the mechanism refused for a reason other than being full, or a head record too large for the reader. event->Source names which buffer, and event->Detail the fault.
SOLIDSYSLOG_CAT_BUFFER_RECORDS_LOST¶
The buffer lost records to its discard policy, working as configured: a full buffer refused the record being written - always under Newest and Halt, and under Oldest when it could not make room - or evicted records from its head to make room for it under Oldest.
event->Detail says which happened, not which policy was in force. Raised as a WARNING, once per run: a run of refusals ends with the next record the buffer keeps, a run of evictions with the next write that evicts nothing. The logger raises it too, under its own source, when it drops the record from the buffer it holds for the sender because the buffer filled behind it under Oldest. A full buffer clears as Service drains it, so a run usually means Service is falling behind the logging rate.
The documentation for this class was generated from the following file Core/Interface/SolidSyslogBufferCategories.h