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