statsig-io / go-sdk

A golang SDK for interfacing with Statsig Feature Gates, Dynamic Configs, and A/B Experiments
ISC License
8 stars 10 forks source link

remove fmt.Println logging #27

Closed arussellsaw closed 1 year ago

arussellsaw commented 1 year ago

Hello! it looks like your most recent release added logging via fmt.Println, would it be possible to change that to either a configurable io.Writer, logger, or an option to disable logging altogether? at the moment our logs are intermingled with the statsig logs which makes consuming structured logging harder, and local dev is very noisy.

edstell commented 1 year ago

For context, this is the log line which is particularly noisy

kenny-statsig commented 1 year ago

Yeah we can definitely do that! We'll make this configurable so you can customize how the log stream should be handled.

kenny-statsig commented 1 year ago

Added an option in v1.10.0 to plug in a custom logger as well as options to turn off logging for each process