GitHub - codemonkeysoftware/go-syslog: Golang syslog wrapper, cross-compile friendly

Skip to content

Navigation Menu

Sign in

Appearance settings

go-syslog

This repository provides a very simple gsyslog package. The point of this package is to allow safe importing of syslog without introducing cross-compilation issues. The stdlib log/syslog cannot be imported on Windows systems, and without conditional compilation this adds complications.

Instead, gsyslog provides a very simple wrapper around log/syslog but returns a dummy writer that writes to log on a non Linux or OSX system.