]> Cypherpunks repositories - gostls13.git/commit
log/syslog: remove RFC5424 version number for greater compatibility
authorJohn Graham-Cumming <jgc@jgc.org>
Fri, 4 Jan 2013 15:21:43 +0000 (10:21 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 4 Jan 2013 15:21:43 +0000 (10:21 -0500)
commitc09649890fd48f9854120999a109ba968596a021
tree1665e401d878035021d78a62b1b84115eb89293a
parent89ec208ee8e2a9de6dc4f716f37eb41da4105a6d
log/syslog: remove RFC5424 version number for greater compatibility

RFC5424 specifies a version number (currently 1) after the facility and
severity in a syslog message (e.g. <7>1 TIMESTAMP ...).  This causes
rsyslog to fail to parse syslog message because the rest of the message
is not fully compliant with RFC5424.

For the widest compatibility, drop the version (messages are in the
RFC3164 BSD syslog format (e.g. <7>TIMESTAMP ...). Have tested this with
syslog-ng, rsyslog and syslogd.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/7036050
src/pkg/log/syslog/syslog.go
src/pkg/log/syslog/syslog_test.go