38#ifndef PROTOCORE_SYSLOG_H
39#define PROTOCORE_SYSLOG_H
43#if PROTOCORE_ENABLE_SYSLOG
70 SYSLOG_FAC_DAEMON = 3,
71 SYSLOG_FAC_LOCAL0 = 16,
72 SYSLOG_FAC_LOCAL1 = 17,
73 SYSLOG_FAC_LOCAL7 = 23,
88 SyslogFacility facility;
94 SyslogSeverity severity;
126 SyslogCollectorArgs collector;
127 SyslogHeaderArgs header;
128 SyslogRecordArgs record;
135extern SyslogVars SyslogV;
140 void (*
const init)(uint8_t *work);
141 void (*
const format)(
const uint8_t *work);
142 void (*
const log)(uint8_t *work);
147void protocore_syslog_init(uint8_t *work);
148void protocore_syslog_format(
const uint8_t *work);
149void protocore_syslog_log(uint8_t *work);
155static const SyslogNs Syslog __attribute__((unused)) = {
156 .init = protocore_syslog_init,
157 .format = protocore_syslog_format,
158 .log = protocore_syslog_log,
170uint8_t *protocore_syslog_span(
void);
EMBED_ENUM_BYTE(ProtoConn, PROTO_NONE=0, PROTO_HTTP=1, PROTO_TELNET=2, PROTO_SSH=3, PROTO_MODBUS=4, PROTO_OPCUA=5, PROTO_SSH_RFWD=6, PROTO_RELAY=7, PROTO_BRIDGE=8, PROTO_NTRIP_CASTER=9, PROTO_MESH=10, PROTO_UDP=11,)
Application protocol spoken on a listener port or connection slot.