Crate slog_syslog5424[][src]

A syslog 5424 drain for slog using a generic writer.

Important Info

Read the documentation on the underlying syslog5424 crate to see the specifics on the formatting:

Performance was not the main goal with this crate, so it may be a bit slower than some other implementations:

  • The buffer is not reused between messages
  • When verifying/converting the message according to RFC5424, 3 String allocations take place

slog-async should probably almost always be used with this crate.

Structs

Rfc5424

Holds the metadata needed for formatting a RFC5424 syslog message.

Rfc5424Builder

Builder for Rfc5424

Rfc5424Writer

Rfc5424 slog writer

Enums

Error

Errors returned when verifying validity of metadata

Facility

Syslog facility

Origin

The SD-ID "origin" MAY be used to indicate the origin of a syslog message. The following parameters can be used. All parameters are OPTIONAL.

TimeQuality

The SD-ID "timeQuality" MAY be used by the originator to describe its notion of system time.

WriteFormat

Format of messages written out. RFC5425 just prepends the length of the 5424 message