Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for DefaultOptions (0.27 sec)

  1. cni/pkg/cmd/root.go

    	"istio.io/istio/pkg/env"
    	"istio.io/istio/pkg/log"
    	"istio.io/istio/pkg/version"
    	iptables "istio.io/istio/tools/istio-iptables/pkg/constants"
    )
    
    var (
    	logOptions   = log.DefaultOptions()
    	ctrlzOptions = func() *ctrlz.Options {
    		o := ctrlz.DefaultOptions()
    		o.EnablePprof = true
    		return o
    	}()
    )
    
    var rootCmd = &cobra.Command{
    	Use:          "install-cni",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  2. cni/pkg/plugin/plugin.go

    	case "error":
    		return log.ErrorLevel
    	case "info":
    		return log.InfoLevel
    	}
    	return log.InfoLevel
    }
    
    func GetLoggingOptions(udsAddress string) *log.Options {
    	loggingOptions := log.DefaultOptions()
    	loggingOptions.OutputPaths = []string{"stderr"}
    	loggingOptions.JSONEncoding = true
    	if udsAddress != "" {
    		loggingOptions.WithTeeToUDS(udsAddress, constants.UDSLogPath)
    	}
    	return loggingOptions
    }
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 15:58:51 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/net_test.go

    	"istio.io/istio/cni/pkg/iptables"
    	istiolog "istio.io/istio/pkg/log"
    	"istio.io/istio/pkg/test/util/assert"
    	"istio.io/istio/tools/istio-iptables/pkg/dependencies"
    )
    
    func setupLogging() {
    	opts := istiolog.DefaultOptions()
    	opts.SetDefaultOutputLevel(istiolog.OverrideScopeName, istiolog.DebugLevel)
    	istiolog.Configure(opts)
    	for _, scope := range istiolog.Scopes() {
    		scope.SetOutputLevel(istiolog.DebugLevel)
    	}
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 16.4K bytes
    - Viewed (0)
Back to top