Skip to content

File SolidSyslogHeaderFieldFunction.h

FileList > Core > Interface > SolidSyslogHeaderFieldFunction.h

The header-field callback typedef the integrator supplies to SolidSyslogConfig for HOSTNAME / APP-NAME / PROCID.

  • #include "SolidSyslogExternC.h"

Public Types Documentation

SolidSyslogHeaderFieldFunction

Appends an RFC 5424 header-field value (HOSTNAME / APP-NAME / PROCID) into the field sink it is handed.

typedef void(* SolidSyslogHeaderFieldFunction) (struct SolidSyslogHeaderField *field, void *context);

The sink owns the charset and framing, so a callback cannot break the header. context is passed through unchanged from the config the callback was registered in. Called for every record the logger formats: inside SolidSyslog_Log on any task that logs, and inside SolidSyslog_Service when the logger reports one of its own events. Those calls can overlap, so a callback must be safe to call concurrently.



The documentation for this class was generated from the following file Core/Interface/SolidSyslogHeaderFieldFunction.h