Expose all levels (for hooks).

This commit is contained in:
Joern Barthel
2015-05-13 14:12:36 +02:00
parent 57cce1ed61
commit 088ac1380d
2 changed files with 11 additions and 8 deletions
+1 -8
View File
@@ -50,12 +50,5 @@ func (hook *SyslogHook) Fire(entry *logrus.Entry) error {
}
func (hook *SyslogHook) Levels() []logrus.Level {
return []logrus.Level{
logrus.PanicLevel,
logrus.FatalLevel,
logrus.ErrorLevel,
logrus.WarnLevel,
logrus.InfoLevel,
logrus.DebugLevel,
}
return logrus.AllLevels
}