The syslog package provides a syslog client.
Unlike the core log/syslog package it uses the newer rfc5424 syslog protocol, reliably reconnects on failure, and supports TLS encrypted TCP connections.
Returned when looking up a non-existant facility or severity
A Logger is a connection to a syslog server. It reconnects on error. Clients log by sending a Packet to the logger.Packets channel.
Dial connects to the syslog server at raddr, using the optional certBundle, and launches a goroutine to watch logger.Packets for messages to log.
A Packet represents an RFC5425 syslog message
A convenience function for testing
Generate creates a RFC5424 syslog format string for this packet.
The combined Facility and Severity of this packet. See RFC5424 for details.
A Syslog Priority is a combination of Severity and Facility.
Facility returns the named facility. It returns ErrPriority if the facility does not exist.
Severity returns the named severity. It returns ErrPriority if the severity does not exist.