Crate syslog_fmt
source ·Expand description
Formatter to convert a message into a valid syslog message for the 5425 syslog protocol.
This crate does not provide a transport method to get the message to the syslog daemon. The focus is to correctly format a message ready for transport.
Modules
- A Formatter and associated types that converts a message and optional structured data into an RFC 5424 compliant message.
Structs
- Error returned if converting from an integer to a u8 based enum fails
Enums
- The facility argument is used to specify what type of program is logging the message. This lets the configuration file specify that messages from different facilities will be handled differently.
- The severity of the message