(entry *logrus.Entry)
| 38 | } |
| 39 | |
| 40 | func (f utcFormatter) Format(entry *logrus.Entry) ([]byte, error) { |
| 41 | entry.Time = entry.Time.UTC() |
| 42 | return f.Formatter.Format(entry) |
| 43 | } |
| 44 | |
| 45 | // Logrus hook which wraps another hook and filters log entries according to their level. |
| 46 | // (Note that we cannot use solely logrus.SetLevel, because Dendrite supports multiple |