func WithLogger(log *zap.Logger) CoreOpt {
	return func(c *core) error {
		c.logger = log
		return nil
	}
}
// WithLogger allows to pass custom copy of zap.Logger insteadof logger.DefaultLogger
WithLogger allows to pass custom copy of zap.Logger insteadof logger.DefaultLogger
// WithLogger allows to pass custom copy of zap . Logger insteadof logger . DefaultLogger
func WithLogger(log *zap.Logger) CoreOpt {
	return func(c *core) error {
		c.logger = log
		return nil
	}
}
func WithLogger ( log * zap . Logger ) CoreOpt { return func ( c * core ) error { c . logger = log return nil } }
WithLogger allows to pass custom copy of zap.Logger insteadof logger.DefaultLogger
WithLogger allows to pass custom copy of zap . Logger insteadof logger . DefaultLogger