mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 04:41:22 +00:00
Logger interface and tmLogger impl based on go-kit
This commit is contained in:
18
log/nop_logger.go
Normal file
18
log/nop_logger.go
Normal file
@ -0,0 +1,18 @@
|
||||
package log
|
||||
|
||||
type nopLogger struct{}
|
||||
|
||||
// NewNopLogger returns a logger that doesn't do anything.
|
||||
func NewNopLogger() Logger { return &nopLogger{} }
|
||||
|
||||
func (nopLogger) Info(string, ...interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (nopLogger) Debug(string, ...interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (nopLogger) Error(string, ...interface{}) error {
|
||||
return nil
|
||||
}
|
Reference in New Issue
Block a user