Export package func to a standard logger.

This commit is contained in:
Antoine Grondin
2014-07-15 18:30:01 -04:00
parent 23c2cf5a8b
commit e5621dca87
7 changed files with 143 additions and 56 deletions
+3 -3
View File
@@ -137,9 +137,9 @@ func (hook *AirbrakeHook) Fire(entry *logrus.Entry) error {
// `Levels()` returns a slice of `Levels` the hook is fired for.
func (hook *AirbrakeHook) Levels() []logrus.Level {
return []logrus.Level{
logrus.Error,
logrus.Fatal,
logrus.Panic,
logrus.ErrorLevel,
logrus.FatalLevel,
logrus.PanicLevel,
}
}
```