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

Method OpenNamespace

zapcore/encoder.go:398–398  ·  view source on GitHub ↗

OpenNamespace opens an isolated namespace where all subsequent fields will be added. Applications can use namespaces to prevent key collisions when injecting loggers into sub-components or third-party libraries.

(key string)

Source from the content-addressed store, hash-verified

396 // be added. Applications can use namespaces to prevent key collisions when
397 // injecting loggers into sub-components or third-party libraries.
398 OpenNamespace(key string)
399}
400
401// ArrayEncoder is a strongly-typed, encoding-agnostic interface for adding

Callers 5

MarshalLogObjectMethod · 0.65
TestMapObjectEncoderAddFunction · 0.65
TestEncoderConfigurationFunction · 0.65
AddToMethod · 0.65

Implementers 2

jsonEncoderzapcore/json_encoder.go
MapObjectEncoderzapcore/memory_encoder.go

Calls

no outgoing calls

Tested by 4

MarshalLogObjectMethod · 0.52
TestMapObjectEncoderAddFunction · 0.52
TestEncoderConfigurationFunction · 0.52