Clone is part of the zapcore.ObjectEncoder interface.
()
| 311 | |
| 312 | // Clone is part of the zapcore.ObjectEncoder interface. |
| 313 | func (fe AppendEncoder) Clone() zapcore.Encoder { |
| 314 | return AppendEncoder{ |
| 315 | Fields: fe.Fields, |
| 316 | wrapped: fe.wrapped.Clone(), |
| 317 | repl: fe.repl, |
| 318 | } |
| 319 | } |
| 320 | |
| 321 | // EncodeEntry partially implements the zapcore.Encoder interface. |
| 322 | func (fe AppendEncoder) EncodeEntry(ent zapcore.Entry, fields []zapcore.Field) (*buffer.Buffer, error) { |