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

Method Sync

sugar.go:341–343  ·  view source on GitHub ↗

Sync flushes any buffered log entries.

()

Source from the content-addressed store, hash-verified

339
340// Sync flushes any buffered log entries.
341func (s *SugaredLogger) Sync() error {
342 return s.base.Sync()
343}
344
345// log message with Sprint, Sprintf, or neither.
346func (s *SugaredLogger) log(lvl zapcore.Level, template string, fmtArgs []interface{}, context []interface{}) {

Callers

nothing calls this directly

Calls 1

SyncMethod · 0.65

Tested by

no test coverage detected