diff options
author | Jhon Honce <jhonce@redhat.com> | 2019-06-18 09:35:48 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2019-06-18 17:37:53 -0700 |
commit | d0d9a4c9b1f525ad1132947cf883fdd66941fe62 (patch) | |
tree | a3cd7d64877f8cf1f664d73ea778af36d387393a /vendor/github.com/sirupsen/logrus/hooks/syslog | |
parent | 1c6e4dc6bba303132a546e398a1c2de254d07f86 (diff) | |
download | podman-d0d9a4c9b1f525ad1132947cf883fdd66941fe62.tar.gz podman-d0d9a4c9b1f525ad1132947cf883fdd66941fe62.tar.bz2 podman-d0d9a4c9b1f525ad1132947cf883fdd66941fe62.zip |
Vendor in logrus v1.4.2
Fixes #3346
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'vendor/github.com/sirupsen/logrus/hooks/syslog')
-rw-r--r-- | vendor/github.com/sirupsen/logrus/hooks/syslog/README.md | 8 | ||||
-rw-r--r-- | vendor/github.com/sirupsen/logrus/hooks/syslog/syslog.go | 7 |
2 files changed, 8 insertions, 7 deletions
diff --git a/vendor/github.com/sirupsen/logrus/hooks/syslog/README.md b/vendor/github.com/sirupsen/logrus/hooks/syslog/README.md index 92b391c17..1bbc0f72d 100644 --- a/vendor/github.com/sirupsen/logrus/hooks/syslog/README.md +++ b/vendor/github.com/sirupsen/logrus/hooks/syslog/README.md @@ -6,12 +6,12 @@ import ( "log/syslog" "github.com/sirupsen/logrus" - logrus_syslog "github.com/sirupsen/logrus/hooks/syslog" + lSyslog "github.com/sirupsen/logrus/hooks/syslog" ) func main() { log := logrus.New() - hook, err := logrus_syslog.NewSyslogHook("udp", "localhost:514", syslog.LOG_INFO, "") + hook, err := lSyslog.NewSyslogHook("udp", "localhost:514", syslog.LOG_INFO, "") if err == nil { log.Hooks.Add(hook) @@ -25,12 +25,12 @@ If you want to connect to local syslog (Ex. "/dev/log" or "/var/run/syslog" or " import ( "log/syslog" "github.com/sirupsen/logrus" - logrus_syslog "github.com/sirupsen/logrus/hooks/syslog" + lSyslog "github.com/sirupsen/logrus/hooks/syslog" ) func main() { log := logrus.New() - hook, err := logrus_syslog.NewSyslogHook("", "", syslog.LOG_INFO, "") + hook, err := lSyslog.NewSyslogHook("", "", syslog.LOG_INFO, "") if err == nil { log.Hooks.Add(hook) diff --git a/vendor/github.com/sirupsen/logrus/hooks/syslog/syslog.go b/vendor/github.com/sirupsen/logrus/hooks/syslog/syslog.go index 204f0016d..02b8df380 100644 --- a/vendor/github.com/sirupsen/logrus/hooks/syslog/syslog.go +++ b/vendor/github.com/sirupsen/logrus/hooks/syslog/syslog.go @@ -1,12 +1,13 @@ // +build !windows,!nacl,!plan9 -package logrus_syslog +package syslog import ( "fmt" - "github.com/sirupsen/logrus" "log/syslog" "os" + + "github.com/sirupsen/logrus" ) // SyslogHook to send logs via syslog. @@ -42,7 +43,7 @@ func (hook *SyslogHook) Fire(entry *logrus.Entry) error { return hook.Writer.Warning(line) case logrus.InfoLevel: return hook.Writer.Info(line) - case logrus.DebugLevel: + case logrus.DebugLevel, logrus.TraceLevel: return hook.Writer.Debug(line) default: return nil |