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) }
func (f *utcFormatter) Format(e *logrus.Entry) ([]byte, error) { e.Time = e.Time.UTC() return f.f.Format(e) }