Add adds a field to the list of extra fields to log.
(field zap.Field)
| 239 | |
| 240 | // Add adds a field to the list of extra fields to log. |
| 241 | func (e *ExtraLogFields) Add(field zap.Field) { |
| 242 | e.handlers.Clear() |
| 243 | e.fields = append(e.fields, field) |
| 244 | } |
| 245 | |
| 246 | // Set sets a field in the list of extra fields to log. |
| 247 | // If the field already exists, it is replaced. |
no outgoing calls