func Sync() error {
	err1 := debugCore.Sync()
	err2 := mainCore.Sync()
	if err1 != nil {
		return err1
	}
	return err2
}
// Sync all used zap cores, call this before program exit.
Sync all used zap cores, call this before program exit.
// Sync all used zap cores call this before program exit .
func Sync() error {
	err1 := debugCore.Sync()
	err2 := mainCore.Sync()
	if err1 != nil {
		return err1
	}
	return err2
}
func Sync ( ) error { err1 := debugCore . Sync ( ) err2 := mainCore . Sync ( ) if err1 != nil { return err1 } return err2 }
Sync all used zap cores, call this before program exit.
Sync all used zap cores call this before program exit .