mcuadros / go-syslog

Syslog server library for go.
http://godoc.org/gopkg.in/mcuadros/go-syslog.v2
MIT License
523 stars 143 forks source link

Add support for timestamp in RFC3339 format #47

Closed ianic closed 6 years ago

ianic commented 6 years ago

This fixes issue https://github.com/mcuadros/go-syslog/issues/45.

Default Go log/syslog is sending syslog messages in that format. That is not according to the standard: "The TIMESTAMP field is the local time and is in the format of "Mmm dd hh:mm:ss" (without the quote marks)" But it is necessery if we want to parse lines sent by log/syslog.