Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

option to disable logger in browser console #293

Closed
glebpigulevsky opened this issue Nov 3, 2023 · 1 comment
Closed

option to disable logger in browser console #293

glebpigulevsky opened this issue Nov 3, 2023 · 1 comment
Labels
waiting for feedback Indicates LaunchDarkly is waiting for customer feedback before issue is closed due to staleness.

Comments

@glebpigulevsky
Copy link
Contributor

Is your feature request related to a problem? Please describe.
I wouldn't want to see constant logs in the browser console at all levels regarding launchDarkly's operation

Describe the solution you'd like
boolean option in the config to disable logger

Additional context
btw, link in the https://github.com/launchdarkly/js-client-sdk/blob/8675ab6b0d1a4833e4e140af3658011bf48b2162/README.md#:~:text=See%20LDOptions.logger doesnt work

@kinyoklion
Copy link
Member

Hello @glebpigulevsky,

Logging can be disabled using the basicLogger, or by writing a custom logger. We won't be adding another configuration to disable it independently of these capabilities.

Example code disabling logging:

      const ldclient = LDClient.initialize(clientSideID, context, {
        logger: LDClient.basicLogger({ level: 'none' })
      });

Thank you for the PR to fix the links to documentation.

Thank you,
Ryan

@kinyoklion kinyoklion added the waiting for feedback Indicates LaunchDarkly is waiting for customer feedback before issue is closed due to staleness. label Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for feedback Indicates LaunchDarkly is waiting for customer feedback before issue is closed due to staleness.
Projects
None yet
Development

No branches or pull requests

2 participants