func NewHookConsole(level logrus.Level) *HookConsole {
	return &HookConsole{
		logger: &logrus.Logger{
			Out:       os.Stderr,
			Formatter: new(logrus.TextFormatter),
			Hooks:     make(logrus.LevelHooks),
			Level:     level,
		},
	}
}
NewHookConsole creates a new HookConsole
package event
import (
	"os"
	"github.com/sirupsen/logrus"
)
type HookConsole struct {
	logger *logrus.Logger
}