Times adds the field key with t formatted as string using zerolog.TimeFieldFormat.
(key string, t []time.Time)
| 772 | |
| 773 | // Times adds the field key with t formatted as string using zerolog.TimeFieldFormat. |
| 774 | func (e *Event) Times(key string, t []time.Time) *Event { |
| 775 | if e == nil { |
| 776 | return e |
| 777 | } |
| 778 | e.buf = enc.AppendTimes(enc.AppendKey(e.buf, key), t, TimeFieldFormat) |
| 779 | return e |
| 780 | } |
| 781 | |
| 782 | // Dur adds the field key with duration d stored as zerolog.DurationFieldUnit. |
| 783 | // If zerolog.DurationFieldInteger is true, durations are rendered as integer |