Floats64 adds the field key with f as a []float64 to the *Event context.
(key string, f []float64)
| 741 | |
| 742 | // Floats64 adds the field key with f as a []float64 to the *Event context. |
| 743 | func (e *Event) Floats64(key string, f []float64) *Event { |
| 744 | if e == nil { |
| 745 | return e |
| 746 | } |
| 747 | e.buf = enc.AppendFloats64(enc.AppendKey(e.buf, key), f, FloatingPointPrecision) |
| 748 | return e |
| 749 | } |
| 750 | |
| 751 | // Timestamp adds the current local time as UNIX timestamp to the *Event context with the "time" key. |
| 752 | // To customize the key name, change zerolog.TimestampFieldName. |