Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/uber-go/zap
/ Sync
Method
Sync
zapcore/core.go:44–44 ·
view source on GitHub ↗
Sync flushes buffered logs (if any).
()
Source
from the content-addressed store, hash-verified
42
Write(Entry, []Field) error
43
// Sync flushes buffered logs (if any).
44
Sync() error
45
}
46
47
type
nopCore
struct
{}
Callers
15
TestIOCoreSyncFail
Function · 0.95
Sync
Method · 0.65
TestLoggerSync
Function · 0.65
TestLoggerSyncFail
Function · 0.65
Sync
Method · 0.65
check
Method · 0.65
Example_presets
Function · 0.65
Example_basicConfiguration
Function · 0.65
Example_advancedConfiguration
Function · 0.65
ExampleNamespace
Function · 0.65
ExampleObject
Function · 0.65
ExampleNewStdLog
Function · 0.65
Implementers
8
partiallyNopCore
zapio/writer_test.go
recordingCore
zapcore/entry_test.go
countingCore
zapcore/sampler_test.go
lazyWithCore
zapcore/lazy_with.go
nopCore
zapcore/core.go
ioCore
zapcore/core.go
levelFilterCore
zapcore/increase_level.go
contextObserver
zaptest/observer/observer.go
Calls
no outgoing calls
Tested by
15
TestIOCoreSyncFail
Function · 0.76
TestLoggerSync
Function · 0.52
TestLoggerSyncFail
Function · 0.52
Example_presets
Function · 0.52
Example_basicConfiguration
Function · 0.52
Example_advancedConfiguration
Function · 0.52
ExampleNamespace
Function · 0.52
ExampleObject
Function · 0.52
ExampleNewStdLog
Function · 0.52
ExampleRedirectStdLog
Function · 0.52
ExampleReplaceGlobals
Function · 0.52
ExampleAtomicLevel
Function · 0.52