(fields []zapcore.Field)
| 188 | } |
| 189 | |
| 190 | func (h *Handler) appendGroups(fields []zapcore.Field) []zapcore.Field { |
| 191 | for _, g := range h.groups { |
| 192 | fields = append(fields, zap.Namespace(g)) |
| 193 | } |
| 194 | return fields |
| 195 | } |
| 196 | |
| 197 | // WithAttrs returns a new Handler whose attributes consist of |
| 198 | // both the receiver's attributes and the arguments. |