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

Method Check

zapcore/hook.go:52–60  ·  view source on GitHub ↗
(ent Entry, ce *CheckedEntry)

Source from the content-addressed store, hash-verified

50}
51
52func (h *hooked) Check(ent Entry, ce *CheckedEntry) *CheckedEntry {
53 // Let the wrapped Core decide whether to log this message or not. This
54 // also gives the downstream a chance to register itself directly with the
55 // CheckedEntry.
56 if downstream := h.Core.Check(ent, ce); downstream != nil {
57 return downstream.AddCore(ent, h)
58 }
59 return ce
60}
61
62func (h *hooked) With(fields []Field) Core {
63 return &hooked{

Callers

nothing calls this directly

Calls 2

AddCoreMethod · 0.80
CheckMethod · 0.65

Tested by

no test coverage detected