func Sync(p **zap.Logger, fn ...ErrorFunc) func(*cli.Context) error {
	return func(c *cli.Context) error {
		err := (*p).Sync()
		for _, f := range fn {
			err = f(err)
		}
		return err
	}
}
// Sync calls Sync method of *zap.Logger of *p, returns its result.
// If fn is specified, the result is converted by them before returned.
//
// This is intended to be used as cli.AfterFunc.
// see https://pkg.go.dev/github.com/urfave/cli/v2#AfterFunc
Sync calls Sync method of *zap.Logger of *p, returns its result.
If fn is specified, the result is converted by them before returned.

This is intended to be used as cli.AfterFunc.
// Sync calls Sync method of * zap . Logger of * p returns its result . // If fn is specified the result is converted by them before returned . // // This is intended to be used as cli . AfterFunc . // see https : // pkg . go . dev / github . com / urfave / cli / v2#AfterFunc
func Sync(p **zap.Logger, fn ...ErrorFunc) func(*cli.Context) error {
	return func(c *cli.Context) error {
		err := (*p).Sync()
		for _, f := range fn {
			err = f(err)
		}
		return err
	}
}
func Sync ( p * * zap . Logger , fn ... ErrorFunc ) func ( * cli . Context ) error { return func ( c * cli . Context ) error { err := ( * p ) . Sync ( ) for _ , f := range fn { err = f ( err ) } return err } }
Sync calls Sync method of *zap.Logger of *p, returns its result.
Sync calls Sync method of * zap . Logger of * p returns its result .