diff --git a/src/output_syslog.go b/src/output_syslog_linux.go similarity index 100% rename from src/output_syslog.go rename to src/output_syslog_linux.go diff --git a/src/output_syslog_nonlinux.go b/src/output_syslog_nonlinux.go new file mode 100644 index 0000000..46a973f --- /dev/null +++ b/src/output_syslog_nonlinux.go @@ -0,0 +1,21 @@ +// +build !linux + +// This entire file is a dummy one to make sure all our cross platform builds work even if the underlying OS doesn't suppot some of the functionality +// afpacket is a Linux-only feature, so we want the relevant function to technically "translate" to something here, which basically returns an error + +package main + +import ( + log "github.com/sirupsen/logrus" +) + +var syslog struct { + Writer bool + Dial bool + LOG_WARNING bool + LOG_DAEMON bool +} + +func syslogOutput(sysConfig syslogConfig) { + log.Error("No Syslog is supported in Windows") +}