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

Method After

zapcore/entry.go:331–338  ·  view source on GitHub ↗

After sets this CheckEntry's CheckWriteHook, which will be called after this log entry has been written. It's safe to call this on nil CheckedEntry references.

(ent Entry, hook CheckWriteHook)

Source from the content-addressed store, hash-verified

329// log entry has been written. It's safe to call this on nil CheckedEntry
330// references.
331func (ce *CheckedEntry) After(ent Entry, hook CheckWriteHook) *CheckedEntry {
332 if ce == nil {
333 ce = getCheckedEntry()
334 ce.Entry = ent
335 }
336 ce.after = hook
337 return ce
338}

Callers 5

TestCheckedEntryWriteFunction · 0.95
ShouldMethod · 0.95
checkMethod · 0.80
TimeFunction · 0.80
AddMethod · 0.80

Calls 1

getCheckedEntryFunction · 0.85

Tested by 1

TestCheckedEntryWriteFunction · 0.76