Module syslog_rfc3164

An RFC3164 compliant protocol backend for syslog messages.

Behaviours: syslog_logger.

Description

An RFC3164 compliant protocol backend for syslog messages.

Function Index

hdr/3 Format the HDR part of RFC 3164 excluding the PRI.
hostname/1 RFC 3164: The Domain Name MUST NOT be included in the HOSTNAME field.
msg/3 Format the MSG part of RFC 3164.

Function Details

hdr/3

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

Format the HDR part of RFC 3164 excluding the PRI.

hostname/1

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

RFC 3164: The Domain Name MUST NOT be included in the HOSTNAME field.

msg/3

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

Format the MSG part of RFC 3164. Basically a noop.


Generated by EDoc