(e string, info map[string]interface{})
| 117 | } |
| 118 | |
| 119 | func (l *logger) Event(e string, info map[string]interface{}) { |
| 120 | if l.entry == nil { |
| 121 | return |
| 122 | } |
| 123 | if info != nil { |
| 124 | l.entry.WithFields(logrus.Fields{"EVENT": e}).WithFields(info).Debug("") |
| 125 | } else { |
| 126 | l.entry.WithFields(logrus.Fields{"EVENT": e}).Debug("") |
| 127 | |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | func (l *logger) TimeTrack(start time.Time, e string, info map[string]interface{}) { |
| 132 | elapsed := time.Since(start).Nanoseconds() / 1000 |