- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for WithTeeToUDS (0.18 sec)
-
cni/pkg/log/uds_test.go
assert.NoError(t, logger.StartUDSLogServer(udsSock, stop)) // Configure log to tee to UDS server stdout := os.Stdout r, w, _ := os.Pipe() os.Stdout = w loggingOptions := log.DefaultOptions() loggingOptions.WithTeeToUDS(udsSock, constants.UDSLogPath) assert.NoError(t, log.Configure(loggingOptions)) log.FindScope("default").SetOutputLevel(log.DebugLevel) log.Debug("debug log") log.Info("info log") log.Warn("warn log")
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Sat Mar 16 00:20:01 GMT 2024 - 2.5K bytes - Viewed (0) -
cni/pkg/plugin/plugin.go
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 } // CmdAdd is called for ADD requests func CmdAdd(args *skel.CmdArgs) (err error) {
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Sat Feb 10 00:31:55 GMT 2024 - 10.4K bytes - Viewed (0)