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

Method EncodeEntry

modules/logging/journaldencoder_test.go:147–151  ·  view source on GitHub ↗
(zapcore.Entry, []zapcore.Field)

Source from the content-addressed store, hash-verified

145func (se staticEncoder) Clone() zapcore.Encoder { return se }
146
147func (se staticEncoder) EncodeEntry(zapcore.Entry, []zapcore.Field) (*buffer.Buffer, error) {
148 buf := bufferpool.Get()
149 buf.AppendString(se.output)
150 return buf, nil
151}
152
153func fixedEntryTime() (ts time.Time) {
154 return time.Date(2001, 2, 3, 4, 5, 6, 0, time.UTC)

Callers

nothing calls this directly

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected