Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetLoggingOptions (0.09 sec)

  1. cni/cmd/istio-cni/main.go

    	// Setup initial logging now. We will override it with proper logging over UDS later, but at this point we don't have the config
    	// read yet and do not want to be completely blind to logs.
    	if err := log.Configure(plugin.GetLoggingOptions(nil)); err != nil {
    		return err
    	}
    	defer func() {
    		// Log sync will send logs to install-cni container via UDS.
    		// We don't need a timeout here because underlying the log pkg already handles it.
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Jun 12 16:26:35 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. cni/pkg/plugin/plugin.go

    		if err != nil {
    			return nil, fmt.Errorf("could not convert result to current version: %v", err)
    		}
    	}
    	// End previous result parsing
    
    	return &conf, nil
    }
    
    func GetLoggingOptions(cfg *Config) *log.Options {
    	loggingOptions := log.DefaultOptions()
    	loggingOptions.OutputPaths = []string{"stderr"}
    	loggingOptions.JSONEncoding = true
    	if cfg != nil {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Aug 14 19:36:19 UTC 2024
    - 10.5K bytes
    - Viewed (0)
Back to top