github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/depends/conf/log/logger_discard.go (about) 1 package log 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) Trace(string, ...interface{}) {} 18 19 func (discard) Debug(string, ...interface{}) {} 20 21 func (discard) Info(string, ...interface{}) {} 22 23 func (discard) Warn(error) {} 24 25 func (discard) Error(error) {} 26 27 func (discard) Fatal(error) {} 28 29 func (discard) Panic(error) {}