Add Printf method to logger

This commit is contained in:
9seconds
2021-03-18 10:15:22 +03:00
parent 60d5b3cadd
commit b258581f47
5 changed files with 15 additions and 1 deletions
+1
View File
@@ -18,6 +18,7 @@ func (suite *NoopLoggerTestSuite) TestLog() {
suite.Empty(testlib.CaptureStderr(func() {
log := logger.NewNoopLogger().Named("name")
log.BindInt("int", 1).BindStr("str", "1").Printf("info", 1, 2)
log.BindInt("int", 1).BindStr("str", "1").Info("info")
log.BindInt("int", 1).BindStr("str", "1").Warning("info")
log.BindInt("int", 1).BindStr("str", "1").Debug("info")