Versions in this module Expand all Collapse all v2 v2.1.0 Nov 8, 2024 v2.0.0 Jan 22, 2024 Changes in this version + func GetSdkKeyLogMapping(sdkKey string) string + func IncludeSDKKeyInLogFields(include bool) + func SetLogLevel(logLevel LogLevel) + func SetLogger(logger OptimizelyLogConsumer) + type FilteredLevelLogConsumer struct + func NewFilteredLevelLogConsumer(level LogLevel, out io.Writer) *FilteredLevelLogConsumer + func (l *FilteredLevelLogConsumer) Log(level LogLevel, message string, fields map[string]interface{}) + func (l *FilteredLevelLogConsumer) SetLogLevel(level LogLevel) + type LogLevel int + const LogLevelDebug + const LogLevelError + const LogLevelInfo + const LogLevelWarning + func (l LogLevel) String() string + type LogMessage string + const AudienceEvaluatedTo + const AudienceEvaluationStarted + const EvaluatingAudiencesForExperiment + const EvaluatingAudiencesForRollout + const ExperimentAudiencesEvaluatedTo + const InvalidAttributeValueType + const NullUserAttribute + const RolloutAudiencesEvaluatedTo + const UnknownConditionType + const UnknownMatchType + const UnsupportedConditionValue + const UserInEveryoneElse + const UserNotInExperiment + const UserNotInRollout + func (l LogMessage) String() string + type NamedLogProducer struct + func (p NamedLogProducer) Debug(message string) + func (p NamedLogProducer) Error(message string, err interface{}) + func (p NamedLogProducer) Info(message string) + func (p NamedLogProducer) Warning(message string) + type OptimizelyLogConsumer interface + Log func(level LogLevel, message string, fields map[string]interface{}) + SetLogLevel func(logLevel LogLevel) + type OptimizelyLogProducer interface + Debug func(message string) + Error func(message string, err interface{}) + Info func(message string) + Warning func(message string) + func GetLogger(sdkKey, name string) OptimizelyLogProducer Other modules containing this package github.com/optimizely/go-sdk