Times adds the field key with t formatted as string using zerolog.TimeFieldFormat.
(key string, t []time.Time)
| 416 | |
| 417 | // Times adds the field key with t formatted as string using zerolog.TimeFieldFormat. |
| 418 | func (c Context) Times(key string, t []time.Time) Context { |
| 419 | c.l.context = enc.AppendTimes(enc.AppendKey(c.l.context, key), t, TimeFieldFormat) |
| 420 | return c |
| 421 | } |
| 422 | |
| 423 | // Dur adds the field key with d divided by unit and stored as a float. |
| 424 | func (c Context) Dur(key string, d time.Duration) Context { |
nothing calls this directly
no test coverage detected