Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for LoggerWithValues (0.25 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/runtime/runtime_stack_test.go

    			fmt.Printf("Unexpected error configuring klog: %v", err)
    			return
    		}
    	}
    	var buffer bytes.Buffer
    	klog.SetOutput(&buffer)
    
    	logger := klog.Background()
    	logger = klog.LoggerWithValues(logger, "request", 42)
    	ctx := klog.NewContext(context.Background(), logger)
    
    	// The line number of the next call must be at line 60. Here are some
    	// blank lines that can be removed to keep the line unchanged.
    	//
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top