Skip to content

File SolidSyslogStructuredData.h

FileList > Core > Interface > SolidSyslogStructuredData.h

  • #include "SolidSyslogExternC.h"

Detailed Description

The structured-data role: emit one or more RFC 5424 SD-ELEMENTs into a message (Format).

This call dispatches to the injected SD's vtable, so the content - and whether it is stateful - is that SD's.

Public Functions Documentation

SolidSyslogStructuredData_Format

Dispatch to sd's Format, writing one or more SD-ELEMENTs intoelement .

void SolidSyslogStructuredData_Format (
    struct SolidSyslogStructuredData * sd,
    struct SolidSyslogSdElement * element
) 

Called by the library while it builds a message; element is an SD-ELEMENT writer that owns the framing, so an SD cannot break it. A stateful SD reads its data through sd (the vtable is its first member), so it must stay valid for the log call and must not be shared mutably across threads logging concurrently.



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