digitalocean / captainslog

A Syslog Protocol Parser
Mozilla Public License 2.0
136 stars 19 forks source link

Problem: want to support logging to local syslog #68

Closed taotetek closed 7 years ago

taotetek commented 7 years ago

Rsyslog, listening on a local unix socket, expects a different logging format that what it receives on the wire (TCP/UDP). This PR adds formatting options for SyslogMsg.String() / SyslogMsg.Bytes() to support local logging format.