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

Method With

zapcore/core.go:81–85  ·  view source on GitHub ↗
(fields []Field)

Source from the content-addressed store, hash-verified

79}
80
81func (c *ioCore) With(fields []Field) Core {
82 clone := c.clone()
83 addFields(clone.enc, fields)
84 return clone
85}
86
87func (c *ioCore) Check(ent Entry, ce *CheckedEntry) *CheckedEntry {
88 if c.Enabled(ent.Level) {

Callers

nothing calls this directly

Calls 2

cloneMethod · 0.95
addFieldsFunction · 0.85

Tested by

no test coverage detected