init on creating

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2020-08-30 14:04:02 +03:00
parent 128bcf3b72
commit cef880126f

2
zap.go
View File

@ -177,6 +177,8 @@ func NewLogger(opts ...logger.Option) logger.Logger {
}
l := &zaplog{opts: options}
_ = l.Init(opts...)
return l
}