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

Method Check

zapcore/core.go:87–92  ·  view source on GitHub ↗
(ent Entry, ce *CheckedEntry)

Source from the content-addressed store, hash-verified

85}
86
87func (c *ioCore) Check(ent Entry, ce *CheckedEntry) *CheckedEntry {
88 if c.Enabled(ent.Level) {
89 return ce.AddCore(ent, c)
90 }
91 return ce
92}
93
94func (c *ioCore) Write(ent Entry, fields []Field) error {
95 buf, err := c.enc.EncodeEntry(ent, fields)

Callers

nothing calls this directly

Calls 2

AddCoreMethod · 0.80
EnabledMethod · 0.65

Tested by

no test coverage detected