(l *logrus.Entry, name string, value T)
| 238 | } |
| 239 | |
| 240 | func withFloatField[T constraints.Float](l *logrus.Entry, name string, value T) *logrus.Entry { |
| 241 | return l.WithField(name, strconv.FormatFloat(float64(value), 'f', -1, 64)) |
| 242 | } |
| 243 | |
| 244 | func withDurationField(l *logrus.Entry, name string, value time.Duration) *logrus.Entry { |
| 245 | return l.WithField(name, value.String()) |