Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for SetLoggerV2 (0.12 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/etcd3/logger.go

    limitations under the License.
    */
    
    package etcd3
    
    import (
    	"fmt"
    
    	"google.golang.org/grpc/grpclog"
    	"k8s.io/klog/v2"
    )
    
    func init() {
    	grpclog.SetLoggerV2(klogWrapper{})
    }
    
    type klogWrapper struct{}
    
    const klogWrapperDepth = 4
    
    func (klogWrapper) Info(args ...interface{}) {
    	if klogV := klog.V(5); klogV.Enabled() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 24 10:13:50 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  2. pkg/log/config.go

    	// capture standard golang "log" package output and force it through our logger
    	_ = zap.RedirectStdLog(defaultZapLogger)
    
    	// capture gRPC logging
    	if options.logGRPC {
    		grpclog.SetLoggerV2(zapgrpc.NewLogger(zap.New(grpcLogger, opts...).WithOptions(zap.AddCallerSkip(3))))
    	}
    
    	// capture klog (Kubernetes logging) through our logging
    	configureKlog.Do(func() {
    		klog.SetLogger(NewLogrAdapter(KlogScope))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 26 20:38:10 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go

    const defaultTestPrefix = "test!"
    
    func init() {
    	metav1.AddToGroupVersion(scheme, metav1.SchemeGroupVersion)
    	utilruntime.Must(example.AddToScheme(scheme))
    	utilruntime.Must(examplev1.AddToScheme(scheme))
    
    	grpclog.SetLoggerV2(grpclog.NewLoggerV2(ioutil.Discard, ioutil.Discard, os.Stderr))
    }
    
    func newPod() runtime.Object {
    	return &example.Pod{}
    }
    
    func newPodList() runtime.Object {
    	return &example.PodList{}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 26.5K bytes
    - Viewed (0)
Back to top