add Println and Printf for zapLogger

This commit is contained in:
Evgeniy Kulikov 2020-02-28 19:44:32 +03:00
parent 772314d156
commit cee4e6239f
No known key found for this signature in database
GPG key ID: BF6AEE0A2A699BF2

View file

@ -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...)
}