From ffc6dc63efc3ee48c94bb101f897553e6fbca4ff Mon Sep 17 00:00:00 2001 From: Didip Kerabat Date: Sun, 27 Jul 2014 22:01:56 -0700 Subject: [PATCH] go fmt --- hooks/syslog/syslog.go | 12 ++++++------ hooks/syslog/syslog_test.go | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/hooks/syslog/syslog.go b/hooks/syslog/syslog.go index 09bb1f4..137901e 100644 --- a/hooks/syslog/syslog.go +++ b/hooks/syslog/syslog.go @@ -1,17 +1,17 @@ package logrus_syslog import ( - "os" "fmt" - "log/syslog" "github.com/Sirupsen/logrus" + "log/syslog" + "os" ) // SyslogHook to send logs via syslog. -type SyslogHook struct{ - Writer *syslog.Writer - SyslogNetwork string - SyslogRaddr string +type SyslogHook struct { + Writer *syslog.Writer + SyslogNetwork string + SyslogRaddr string } // Creates a hook to be added to an instance of logger. This is called with diff --git a/hooks/syslog/syslog_test.go b/hooks/syslog/syslog_test.go index 87d90df..42762dc 100644 --- a/hooks/syslog/syslog_test.go +++ b/hooks/syslog/syslog_test.go @@ -1,14 +1,14 @@ package logrus_syslog import ( - "testing" - "log/syslog" "github.com/Sirupsen/logrus" + "log/syslog" + "testing" ) func TestLocalhostAddAndPrint(t *testing.T) { - log := logrus.New() - hook, err := NewSyslogHook("udp", "localhost:514", syslog.LOG_INFO, "") + log := logrus.New() + hook, err := NewSyslogHook("udp", "localhost:514", syslog.LOG_INFO, "") if err != nil { t.Errorf("Unable to connect to local syslog.") @@ -23,4 +23,4 @@ func TestLocalhostAddAndPrint(t *testing.T) { } log.Info("Congratulations!") -} \ No newline at end of file +}