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

Method Check

zapcore/core.go:36–36  ·  zapcore/core.go::Core.Check

Check determines whether the supplied Entry should be logged (using the embedded LevelEnabler and possibly some extra logic). If the entry should be logged, the Core adds itself to the CheckedEntry and returns the result. Callers must use Check before calling Write.

(Entry, *CheckedEntry)

Source from the content-addressed store, hash-verified

34 //
35 // Callers must use Check before calling Write.
36 Check(Entry, *CheckedEntry) *CheckedEntry
37 // Write serializes the Entry and any Fields supplied at the log site and
38 // writes them to their destination.
39 //

Callers 15

logMethod · 0.65
loglnMethod · 0.65
TestLoggerAtomicLevelFunction · 0.65
TestLoggerLogPanicFunction · 0.65
TestLoggerLogFatalFunction · 0.65
TestLoggerAlwaysPanicsFunction · 0.65
TestLoggerAlwaysFatalsFunction · 0.65
checkMethod · 0.65
ExampleLogger_CheckFunction · 0.65
logMethod · 0.65
BenchmarkTeeCheckFunction · 0.65
TestTeeCheckFunction · 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

TestLoggerAtomicLevelFunction · 0.52
TestLoggerLogPanicFunction · 0.52
TestLoggerLogFatalFunction · 0.52
TestLoggerAlwaysPanicsFunction · 0.52
TestLoggerAlwaysFatalsFunction · 0.52
ExampleLogger_CheckFunction · 0.52
BenchmarkTeeCheckFunction · 0.52
TestTeeCheckFunction · 0.52
TestTeeWithFunction · 0.52
TestIncreaseLevelFunction · 0.52
writeSequenceFunction · 0.52