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

Struct partiallyNopCore

zapio/writer_test.go:238–238  ·  zapio/writer_test.go::partiallyNopCore

partiallyNopCore behaves exactly like NopCore except it always returns true for whether the provided level is enabled, and accepts all Check requests. This lets us measure the overhead of the writer without measuring the cost of logging.

Source from the content-addressed store, hash-verified

236// This lets us measure the overhead of the writer without measuring the cost
237// of logging.
238type partiallyNopCore struct{}
239
240func (*partiallyNopCore) Enabled(zapcore.Level) bool { return true }
241

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected