func (hook *HookAPIEvents) Levels() []logrus.Level {
	return logrus.AllLevels
}
Levels defines on which log levels this hook should be fired
package event
import (
	"time"
	"github.com/sirupsen/logrus"
)
type APIEvent struct {
	Time     time.Time
	LogLevel string `yaml:"level"`
	Message  string
}
func (eventLog *Log) AsAPIEvents() []*APIEvent {
	saver := &HookAPIEvents{}
	eventLog.Save(saver)
	return saver.events
}
type HookAPIEvents struct {
	events []*APIEvent
}