Skip to main content

Crate syslog_fmt

Crate syslog_fmt 

Source
Expand description

Formats log records as RFC 5424 syslog messages.

Transport is intentionally out of scope. Separating formatting from transport lets callers choose their own delivery mechanism (UDP, Unix socket, TCP) and keeps this crate’s dependency footprint minimal.

Modules§

v5424
RFC 5424 message formatter.

Structs§

IntToEnumError
Error produced when an integer does not map to a known Facility or Severity variant.

Enums§

Facility
Variant values are pre-shifted by 3 bits because the RFC encodes priority as (facility << 3) | severity, reserving the lower 3 bits for severity.
Severity
Indicates how urgent a log message is.