Versions in this module Expand all Collapse all v1 v1.8.7 Apr 17, 2023 v1.8.6 Apr 17, 2023 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