Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(980)

Issue 7036050: code review 7036050: log/syslog: remove RFC5424 version number for greater c... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by jgc
Modified:
11 years, 3 months ago
Reviewers:
CC:
golang-dev, rsc
Visibility:
Public.

Description

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.

Patch Set 1 #

Patch Set 2 : diff -r d0d76b7fb219 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -10 lines) Patch
M src/pkg/log/syslog/syslog.go View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/log/syslog/syslog_test.go View 1 2 chunks +8 lines, -8 lines 0 comments Download

Messages

Total messages: 3
jgc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
11 years, 3 months ago (2013-01-04 14:46:05 UTC) #1
rsc
LGTM
11 years, 3 months ago (2013-01-04 15:21:14 UTC) #2
rsc
11 years, 3 months ago (2013-01-04 15:21:44 UTC) #3
*** Submitted as https://code.google.com/p/go/source/detail?r=9b60bbb9814d ***

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://codereview.appspot.com/7036050

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b