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

Method Sync

logger.go:302–304  ·  view source on GitHub ↗

Sync calls the underlying Core's Sync method, flushing any buffered log entries. Applications should take care to call Sync before exiting.

()

Source from the content-addressed store, hash-verified

300// Sync calls the underlying Core's Sync method, flushing any buffered log
301// entries. Applications should take care to call Sync before exiting.
302func (log *Logger) Sync() error {
303 return log.core.Sync()
304}
305
306// Core returns the Logger's underlying zapcore.Core.
307func (log *Logger) Core() zapcore.Core {

Callers

nothing calls this directly

Calls 1

SyncMethod · 0.65

Tested by

no test coverage detected