From 6815eb0dbd61194ed6b94fa16ba112e44e10f159 Mon Sep 17 00:00:00 2001 From: Gert-Jan Timmer Date: Tue, 27 Oct 2015 10:18:45 +0100 Subject: [PATCH] Added Build Rule Add build rule, to only build on Linux platform, reason for adding this: This allows the usage of the logrus package within a Windows based project. Current logrus project fails to import due to the fact the syslog is missing on Windows. --- hooks/syslog/syslog.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hooks/syslog/syslog.go b/hooks/syslog/syslog.go index b6fa374..c59f331 100644 --- a/hooks/syslog/syslog.go +++ b/hooks/syslog/syslog.go @@ -1,3 +1,5 @@ +// +build !windows,!nacl,!plan9 + package logrus_syslog import (