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

Method With

zapcore/core.go:29–29  ·  zapcore/core.go::Core.With

With adds structured context to the Core.

([]Field)

Source from the content-addressed store, hash-verified

27
28 // With adds structured context to the Core.
29 With([]Field) Core
30 // Check determines whether the supplied Entry should be logged (using the
31 // embedded LevelEnabler and possibly some extra logic). If the entry
32 // should be logged, the Core adds itself to the CheckedEntry and returns

Callers 15

TestGlobalsConcurrentUseFunction · 0.65
Benchmark100FieldsFunction · 0.65
TestIncreaseLevelFunction · 0.65
FieldsFunction · 0.65
TestSugarLnLoggingFunction · 0.65
WithMethod · 0.65
TestLoggerAtomicLevelFunction · 0.65
TestLoggerWithFunction · 0.65

Implementers 8

partiallyNopCorezapio/writer_test.go
recordingCorezapcore/entry_test.go
countingCorezapcore/sampler_test.go
lazyWithCorezapcore/lazy_with.go
nopCorezapcore/core.go
ioCorezapcore/core.go
levelFilterCorezapcore/increase_level.go
contextObserverzaptest/observer/observer.go

Calls

no outgoing calls

Tested by 15

TestGlobalsConcurrentUseFunction · 0.52
Benchmark100FieldsFunction · 0.52
TestIncreaseLevelFunction · 0.52
TestSugarLnLoggingFunction · 0.52
TestLoggerAtomicLevelFunction · 0.52
TestLoggerWithFunction · 0.52
TestLoggerConcurrentFunction · 0.52
TestNopLoggerFunction · 0.52