(l *logrus.Entry, name string, value T)
| 234 | } |
| 235 | |
| 236 | func withSignedIntField[T constraints.Signed](l *logrus.Entry, name string, value T) *logrus.Entry { |
| 237 | return l.WithField(name, strconv.FormatInt(int64(value), 10)) |
| 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)) |