MCPcopy Create free account
hub / github.com/caddyserver/caddy / EncodeEntry

Method EncodeEntry

modules/logging/nopencoder.go:109–111  ·  view source on GitHub ↗

EncodeEntry partially implements the zapcore.Encoder interface.

(ent zapcore.Entry, fields []zapcore.Field)

Source from the content-addressed store, hash-verified

107
108// EncodeEntry partially implements the zapcore.Encoder interface.
109func (nopEncoder) EncodeEntry(ent zapcore.Entry, fields []zapcore.Field) (*buffer.Buffer, error) {
110 return bufferpool.Get(), nil
111}
112
113// Interface guard
114var _ zapcore.Encoder = (*nopEncoder)(nil)

Callers

nothing calls this directly

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected