Skip to content

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

@defelmnq

Description

@defelmnq

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions