// GetLogger returns the logger. func (cfg Config) GetLogger() *zap.Logger { … } // setupLogging initializes etcd logging. // Must be called after flag parsing or finishing configuring embed.Config. func (cfg *Config) setupLogging() error { … } // NewZapLoggerBuilder generates a zap logger builder that sets given loger // for embedded etcd. func NewZapLoggerBuilder(lg *zap.Logger) func(*Config) error { … } // NewZapCoreLoggerBuilder - is a deprecated setter for the logger. // Deprecated: Use simpler NewZapLoggerBuilder. To be removed in etcd-3.6. func NewZapCoreLoggerBuilder(lg *zap.Logger, _ zapcore.Core, _ zapcore.WriteSyncer) func(*Config) error { … } // SetupGlobalLoggers configures 'global' loggers (grpc, zapGlobal) based on the cfg. // // The method is not executed by embed server by default (since 3.5) to // enable setups where grpc/zap.Global logging is configured independently // or spans separate lifecycle (like in tests). func (cfg *Config) SetupGlobalLoggers() { … } type logRotationConfig … // Sync implements zap.Sink func (logRotationConfig) Sync() error { … } // setupLogRotation initializes log rotation for a single file path target. func setupLogRotation(logOutputs []string, logRotateConfigJSON string) error { … }