Esempio 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)
}
Esempio n. 2
0
File: serve.go Progetto: jwmaag/dex
func (f *utcFormatter) Format(e *logrus.Entry) ([]byte, error) {
	e.Time = e.Time.UTC()
	return f.f.Format(e)
}