func (buf *HookMemory) Fire(e *logrus.Entry) error {
	buf.entries = append(buf.entries, e)
	return nil
}
Fire processes a single log entry
package event
import (
	"github.com/sirupsen/logrus"
)
type HookMemory struct {
	entries []*logrus.Entry
}
func (buf *HookMemory) Levels() []logrus.Level {
	return logrus.AllLevels
}