(e *logrus.Entry)
| 49 | } |
| 50 | |
| 51 | func (t *Hook) Fire(e *logrus.Entry) error { |
| 52 | t.mu.Lock() |
| 53 | defer t.mu.Unlock() |
| 54 | t.Entries = append(t.Entries, *e) |
| 55 | return nil |
| 56 | } |
| 57 | |
| 58 | func (t *Hook) Levels() []logrus.Level { |
| 59 | return logrus.AllLevels |
nothing calls this directly
no test coverage detected