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

Add a centralized logger #527

Open
3 tasks
tombruijn opened this issue Dec 3, 2021 · 0 comments
Open
3 tasks

Add a centralized logger #527

tombruijn opened this issue Dec 3, 2021 · 0 comments
Labels

Comments

@tombruijn
Copy link
Member

The JavaScript integration only uses the console.log/warn/debug/error type functions to log things. It would be useful to route this all through a centralized logged so that we have more control over the log format and when we log certain messages, such as implementing the log_level config option.

To do

  • Create centralized logger.
  • Update all log statements to use the centralized logger (with the exception of deprecation warnings and other messages that should be visible to the user).
  • Add log_level config option. See integrations guide.

Related issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant