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

Struct lazyWithCore

zapcore/lazy_with.go:25–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23import "sync"
24
25type lazyWithCore struct {
26 core Core
27 originalCore Core
28 sync.Once
29 fields []Field
30}
31
32// NewLazyWith wraps a Core with a "lazy" Core that will only encode fields if
33// the logger is written to (or is further chained in a lon-lazy manner).

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected