launchdarkly / ios-client-sdk

LaunchDarkly Client-side SDK for iOS (Swift and Obj-C)
https://docs.launchdarkly.com/sdk/client-side/ios
Other
68 stars 82 forks source link

On version 9.4.1 the logs are excessive by default and I see no way to disable them. #350

Closed mcmurrym closed 3 months ago

mcmurrym commented 3 months ago

Describe the bug In version 9.4.1 the logs are excessive by default and I see no way to disable them.

To reproduce Use version 9.4.1

Expected behavior The ability to disable logs, or reduce to errors only in development

Logs If applicable, add any log output related to your problem.

Library version 9.4.1

XCode and Swift version Xcode 15.3.0 Swift 5.10

Platform the issue occurs on iPhone, iPad, macOS, tvOS, or watchOS.

Additional context Add any other context about the problem here.

keelerm84 commented 3 months ago

By default, the SDK makes use of Logger with subsystem "com.launchdarkly" and category of "ios-client-sdk".

You can provide your own logger (or disable it entirely) using the Config.logger property.

config.logger = .disabled
mcmurrym commented 3 months ago

By default, the SDK makes use of Logger with subsystem "com.launchdarkly" and category of "ios-client-sdk".

You can provide your own logger (or disable it entirely) using the Config.logger property.

config.logger = .disabled

This works. Thank you.