// OptServerLogger is a functional option on Server
// used to set the logger.
322470
func OptServerLogger(l logger.Logger) ServerOption {
	return func(s *Server) error {
		s.logger = l
		return nil
	}
}
479325
func InitLogger(l api.LoggerProvider) {
	loggerProviderOnce.Do(func() {
		loggerProviderInstance = l
		atomic.StoreInt32(&useCustomLogger, 1)
	})
}
1356993
func SetLogger(logger Logger) Logger {
	if logger == nil {
		logger = NewIoLogger(nil)
	}

	CurrentLogger = logger
	CurrentContext.Logger = logger

	return logger
}
101727
func OptServerSerializer(ser Serializer) ServerOption {
	return func(s *Server) error {
		s.serializer = ser
		return nil
	}
}
957323
func (c *Conn) SetLogger(logger Logger) Logger {
	oldLogger := c.logger
	c.logger = logger
	return oldLogger
}
114266
func Logger(logger jaeger.Logger) Option {
	return func(c *Options) {
		c.logger = logger
	}
}
1072782
func Logger(l *log.Logger) ConnLimitOption {
	return func(cl *ConnLimiter) error {
		cl.log = l
		return nil
	}
}
678020
func (cs *ConsensusState) SetLogger(l log.Logger) {
	cs.BaseService.Logger = l
	cs.timeoutTicker.SetLogger(l)
}
1057524
func (reader PluginConfigReaderWithError) GetLogger() logrus.FieldLogger {
	return logrus.WithFields(logrus.Fields{
		"PluginType": reader.config.Typename,
		"PluginID":   reader.config.ID,
	})
}
244048
func OptLogging(logger Logger, verbosity LogVerbosity) Option {
	return func(db *Database) {
		if logger != nil {
			db.sender = newLoggingSender(db.sender, logger, verbosity)
		}
	}
}
303465
func WithLogger(logger func(a ...interface{})) SupervisorOption {
	return func(s *supervisor.Supervisor) {
		s.Log = func(v interface{}) {
			logger(v)
		}
	}
}
1133633
func OptUseServer(s *fasthttp.Server) func(*App) {
	return func(app *App) {
		assertAppNotNill(app)
		if s == nil {
			panic(errors.New("cannot set nil as app server instance"))
		}
		app.serverBase = s
		app.serverBase.Handler = app.handler()
	}
}
728211
func (lgr *logger) SetLogger(l genericLogger) {
	lgr.mutex.Lock()
	defer lgr.mutex.Unlock()

	lgr.Logger = l
}
71013
func SetLogger(logger Logger) error {
	if logger == nil {
		return errors.New("logger is nil")
	}
	errLog = logger
	return nil
}
285198
func Logger(logger *zap.Logger) TransportOption {
	return func(options *transportOptions) {
		options.logger = logger
	}
}
157850
func Logger(l *log.Logger) TokenLimiterOption {
	return func(tl *TokenLimiter) error {
		tl.log = l
		return nil
	}
}
1107636
func OptServerSystemInfo(si SystemInfo) ServerOption {
	return func(s *Server) error {
		s.systemInfo = si
		return nil
	}
}