Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log/syslog : support tcp/udp for non-linux platforms #13810

Closed
vncntd opened this issue Jan 4, 2016 · 1 comment
Closed

log/syslog : support tcp/udp for non-linux platforms #13810

vncntd opened this issue Jan 4, 2016 · 1 comment

Comments

@vncntd
Copy link

vncntd commented Jan 4, 2016

Hi,

I tried to use the log/syslog package under windows and i've seen that it is not available, even when i tried to use it with a windows compatible protocol like udp.

After checking the sources i noticed that the package is not actually compiled for windows.

// +build !windows,!nacl,!plan9

I found a way to patch it. I compiled the syslog.go file for windows and moved the call to UnixSyslog in the syslog_unix.go file. This doesn't change the behaviour under a linux platform and permits the support of some protocols under windows.

I already have forked the package and patched/tested it.

Go Version : 1.4.x
OS & processor architecture : linux/amd64 and windows/amd64

@bradfitz
Copy link
Contributor

bradfitz commented Jan 4, 2016

The log/syslog package in the standard library is frozen and probably shouldn't have been included in the standard library in the first place. See https://godoc.org/?q=syslog or community-maintained versions.

See also: #1108 (also closed0

@bradfitz bradfitz closed this as completed Jan 4, 2016
@golang golang locked and limited conversation to collaborators Jan 4, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants