github.com/nyan233/littlerpc@v0.4.6-0.20230316182519-0c8d5c48abaf/core/common/logger/logging_nil.go (about)

     1  package logger
     2  
     3  type NilLogger struct{}
     4  
     5  func (n NilLogger) Info(format string, v ...interface{}) {
     6  	return
     7  }
     8  
     9  func (n NilLogger) Debug(format string, v ...interface{}) {
    10  	return
    11  }
    12  
    13  func (n NilLogger) Warn(format string, v ...interface{}) {
    14  	return
    15  }
    16  
    17  func (n NilLogger) Error(format string, v ...interface{}) {
    18  	return
    19  }
    20  
    21  func (n NilLogger) Panic(format string, v ...interface{}) {
    22  	return
    23  }