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

Replace debug with tslog #992

Open
3 tasks
steabert opened this issue Jul 12, 2024 · 0 comments
Open
3 tasks

Replace debug with tslog #992

steabert opened this issue Jul 12, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@steabert
Copy link
Member

The debug package still relies on CommonJS (either itself or in its dependencies), which causes issues when generating ESM for e.g. Node.js.

We should replace it with either a custom logger or e.g. tslog:

  • extract debug logs so that we only use our own wrapper functions for logging
  • in the wrapper function, use console or tslog to do the actual logging
  • look into a way to control logging level from localStorage (and listen to changes to modify on the fly)

Solves #990

@steabert steabert added this to the ES Modules support milestone Jul 12, 2024
@steabert steabert added the enhancement New feature or request label Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant