Module syslog_rfc5424

An RFC5424 compliant protocol backend for syslog messages.

Behaviours: syslog_logger.

Description

An RFC5424 compliant protocol backend for syslog messages.

Function Index

hdr/3 Format the HDR part of RFC 5424 excluding the PRI, including structured elements.
hostname/1 FQDN, IP address, hostname all allowed by RFC 5424.
msg/3 Format the MSG part of RFC 5424.

Function Details

hdr/3

hdr(Datetime::syslog:datetime(), Pid::binary(), Syslog_cfg::#syslog_cfg{}) -> iodata()

Format the HDR part of RFC 5424 excluding the PRI, including structured elements.

hostname/1

hostname(Hostname::string()) -> string()

FQDN, IP address, hostname all allowed by RFC 5424

msg/3

msg(StructuredData::[syslog:sd_element()], Msg::binary(), Syslog_cfg::#syslog_cfg{}) -> binary()

Format the MSG part of RFC 5424.


Generated by EDoc