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

     1  package kit
     2  
     3  type Logger interface {
     4  	Debugf(format string, args ...any)
     5  	Errorf(format string, args ...any)
     6  }
     7  
     8  type NOPLogger struct{}
     9  
    10  var _ Logger = (*NOPLogger)(nil)
    11  
    12  func (n NOPLogger) Error(_ ...any) {}
    13  
    14  func (n NOPLogger) Errorf(_ string, _ ...any) {}
    15  
    16  func (n NOPLogger) Debug(_ ...any) {}
    17  
    18  func (n NOPLogger) Debugf(_ string, _ ...any) {}