github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/depends/kit/logr/discard.go (about)

     1  package logr
     2  
     3  import "context"
     4  
     5  func Discard() Logger { return &discard{} }
     6  
     7  type discard struct{}
     8  
     9  func (d *discard) WithValues(...interface{}) Logger { return d }
    10  
    11  func (d *discard) Start(ctx context.Context, _ string, _ ...interface{}) (context.Context, Logger) {
    12  	return ctx, d
    13  }
    14  
    15  func (discard) End() {}
    16  
    17  func (discard) Debug(string, ...interface{}) {}
    18  
    19  func (discard) Info(string, ...interface{}) {}
    20  
    21  func (discard) Warn(error) {}
    22  
    23  func (discard) Error(error) {}