Ejemplo n.º 1
0
func (l *Logger) fireHook(level logrus.Level, entry logrus.Entry, msg string) {
	entry.Time = time.Now()
	entry.Message = msg
	entry.Level = level
	l.logHooks.Fire(level, &entry)
}