[][src]Crate syslog_loose

Structs

Message
StructuredElement

Enums

Protocol
SyslogFacility

Syslog facilities. Taken From RFC 5424, but I've heard that some platforms mix these around. Names are from Linux.

SyslogSeverity

Syslog Severities from RFC 5424.

Functions

decompose_pri

The pri field is composed of both the facility and severity values. The first byte is the Severity, the remaining are the Facility.

parse_message

Parses the message. For messages where the timestamp doesn't specify a year it just takes the current year.

parse_message_with_year

Parse the message.

Type Definitions

IncompleteDate

An incomplete date is a tuple of (month, date, hour, minutes, seconds)