Skip to content

Conversation

@kyeh-amp
Copy link
Contributor

@kyeh-amp kyeh-amp commented Nov 4, 2025

Summary

These changes provide users with more controls over the SDK logging behavior. Users can now provide their own logger instances via client configs.

Checklist

  • Does your PR title have the correct title format?
  • Does your PR have a breaking change?: No

@promptless
Copy link

promptless bot commented Nov 4, 2025

📝 Documentation updates detected!

New suggestion: Document custom logging configuration for JavaScript Experiment SDK

* This class provides a centralized logging mechanism for the Experiment client.
* @category Logging
*/
export class AmpLogger implements Logger {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also wonder the necessity of the wrapper given we're not doing any filtering or transformation like other SDKs. We usually want to keep experiment-browser lean.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great point about lean skds. I believe this is a low addition way to provide log level filtering on our end as well as have a decent buffer between our log level definitions/usages and others.

@kyeh-amp kyeh-amp merged commit d9618f8 into main Nov 6, 2025
9 checks passed
@kyeh-amp kyeh-amp deleted the logger-interface branch November 6, 2025 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants