From cee4e6239f0aa6ccf0400f6157c1142b5b782ef5 Mon Sep 17 00:00:00 2001 From: Evgeniy Kulikov Date: Fri, 28 Feb 2020 19:44:32 +0300 Subject: [PATCH] add Println and Printf for zapLogger --- logger.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/logger.go b/logger.go index 13aefe0..6c36a8c 100644 --- a/logger.go +++ b/logger.go @@ -114,6 +114,14 @@ func (z *zapLogger) Infof(format string, args ...interface{}) { z.log.Sugar().Infof(format, args...) } +func (z *zapLogger) Println(args ...interface{}) { + z.log.Sugar().Info(args...) +} + +func (z *zapLogger) Printf(format string, args ...interface{}) { + z.log.Sugar().Infof(format, args...) +} + func (z *zapLogger) Warning(args ...interface{}) { z.log.Sugar().Warn(args...) }