(status, bytes int, elapsed time.Duration)
| 41 | } |
| 42 | |
| 43 | func (l *structuredLoggerEntry) Write(status, bytes int, elapsed time.Duration) { |
| 44 | l.Logger = l.Logger.WithFields(logrus.Fields{ |
| 45 | "status": status, |
| 46 | "duration": elapsed.Nanoseconds(), |
| 47 | }) |
| 48 | |
| 49 | l.Logger.Info("request completed") |
| 50 | } |
| 51 | |
| 52 | func (l *structuredLoggerEntry) Panic(v interface{}, stack []byte) { |
| 53 | l.Logger.WithFields(logrus.Fields{ |
no outgoing calls
no test coverage detected