Logger interface and tmLogger impl based on go-kit

This commit is contained in:
Anton Kaliaev
2017-04-27 13:42:03 +04:00
parent 706b9fbd67
commit ed76afd409
14 changed files with 473 additions and 68 deletions

18
log/nop_logger_test.go Normal file
View File

@ -0,0 +1,18 @@
package log_test
import (
"testing"
"github.com/tendermint/tmlibs/log"
)
func TestNopLogger(t *testing.T) {
t.Parallel()
logger := log.NewNopLogger()
if err := logger.Info("Hello", "abc", 123); err != nil {
t.Error(err)
}
if err := log.With(logger, "def", "ghi").Debug(""); err != nil {
t.Error(err)
}
}