func (f *Flags) Logger() (*zap.Logger, error) {
	logger, err := f.RootLogger()
	if len(f.Name) > 0 && logger != nil {
		logger = logger.Named(f.Name)
	}
	return logger, err
}
// Logger calls f.RootLogger() and returns the logger named with f.Name if
// f.Name is not empty, otherwise returns the result of f.RootLogger().
Logger calls f.RootLogger() and returns the logger named with f.Name if
f.Name is not empty, otherwise returns the result of f.RootLogger().
// Logger calls f . RootLogger () and returns the logger named with f . Name if // f . Name is not empty otherwise returns the result of f . RootLogger () .
func (f *Flags) Logger() (*zap.Logger, error) {
	logger, err := f.RootLogger()
	if len(f.Name) > 0 && logger != nil {
		logger = logger.Named(f.Name)
	}
	return logger, err
}
func ( f * Flags ) Logger ( ) ( * zap . Logger , error ) { logger , err := f . RootLogger ( ) if len ( f . Name ) > 0 && logger != nil { logger = logger . Named ( f . Name ) } return logger , err }
Logger calls f.RootLogger() and returns the logger named with f.Name if
f.Name is not empty, otherwise returns the result of f.RootLogger().
Logger calls f . RootLogger () and returns the logger named with f . Name if f . Name is not empty otherwise returns the result of f . RootLogger () .