MCPcopy
hub / github.com/uber-go/zap / EncodeEntry

Method EncodeEntry

zapcore/encoder.go:465–465  ·  zapcore/encoder.go::Encoder.EncodeEntry

EncodeEntry encodes an entry and fields, along with any accumulated context, into a byte buffer and returns it. Any fields that are empty, including fields on the `Entry` type, should be omitted.

(Entry, []Field)

Source from the content-addressed store, hash-verified

463 // context, into a byte buffer and returns it. Any fields that are empty,
464 // including fields on the `Entry` type, should be omitted.
465 EncodeEntry(Entry, []Field) (*buffer.Buffer, error)
466}

Callers 10

TestJSONEncodeEntryFunction · 0.65
TestJSONEmptyConfigFunction · 0.65
BenchmarkZapJSONFunction · 0.65
BenchmarkZapConsoleFunction · 0.65
WriteMethod · 0.65
TestConsoleEncodeEntryFunction · 0.65
TestConsoleSeparatorFunction · 0.65
TestEncoderConfigurationFunction · 0.65

Implementers 2

jsonEncoderzapcore/json_encoder.go
consoleEncoderzapcore/console_encoder.go

Calls

no outgoing calls

Tested by 9

TestJSONEncodeEntryFunction · 0.52
TestJSONEmptyConfigFunction · 0.52
BenchmarkZapJSONFunction · 0.52
BenchmarkZapConsoleFunction · 0.52
TestConsoleEncodeEntryFunction · 0.52
TestConsoleSeparatorFunction · 0.52
TestEncoderConfigurationFunction · 0.52