code: func SetOrdererEnv(cmd *cobra.Command, args []string) {
  	// read in the legacy logging level settings and, if set,
  	// notify users of the FABRIC_LOGGING_SPEC env variable
  	var loggingLevel string
  	if viper.GetString("logging_level") != "" {
  		loggingLevel = viper.GetString("logging_level")
  	} else {
  		loggingLevel = viper.GetString("logging.level")
  	}
  	if loggingLevel != "" {
  		mainLogger.Warning("CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable")
  	}
  	// need to init logging here as cobra does not currently support
  	// chaining PersistentPreRun functions
  	loggingSpec := os.Getenv("FABRIC_LOGGING_SPEC")
  	flogging.InitFromSpec(loggingSpec)
  	// set the orderer environment from flags
  	viper.Set("orderer.tls.rootcert.file", caFile)
  	viper.Set("orderer.tls.clientKey.file", keyFile)
  	viper.Set("orderer.tls.clientCert.file", certFile)
  	viper.Set("orderer.address", OrderingEndpoint)
  	viper.Set("orderer.tls.serverhostoverride", ordererTLSHostnameOverride)
  	viper.Set("orderer.tls.enabled", tlsEnabled)
  	viper.Set("orderer.tls.clientAuthRequired", clientAuth)
  	viper.Set("orderer.client.connTimeout", connTimeout)
  }
docs: // SetOrdererEnv adds orderer-specific settings to the global Viper environment