Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for DefaultOptions (0.16 sec)

  1. 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)
Back to top