github.com/clubpay/ronykit/kit@v0.14.4-0.20240515065620-d0dace45cbc7/common/nop_logger.go (about)

     1  package common
     2  
     3  import "github.com/clubpay/ronykit/kit"
     4  
     5  type NOPLogger struct{}
     6  
     7  func NewNopLogger() NOPLogger {
     8  	return NOPLogger{}
     9  }
    10  
    11  var _ kit.Logger = (*NOPLogger)(nil)
    12  
    13  func (n NOPLogger) Debug(_ ...any) {}
    14  
    15  func (n NOPLogger) Debugf(_ string, _ ...any) {}
    16  
    17  func (n NOPLogger) Error(_ ...any) {}
    18  
    19  func (n NOPLogger) Errorf(_ string, _ ...any) {}