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

Use log instead of console_log! #15

Open
jyn514 opened this issue Aug 24, 2021 · 2 comments
Open

Use log instead of console_log! #15

jyn514 opened this issue Aug 24, 2021 · 2 comments

Comments

@jyn514
Copy link
Contributor

jyn514 commented Aug 24, 2021

This will mean all the logging from libraries that developers don't control will still show up in the JS console. We could implement it by registering a log handler which outputs to the JS console.

@nilslice
Copy link
Contributor

yea that's a good idea. console_log! simply wraps some websys code to write to JS console, and could be re-used under the hood of the handler registered with log. i'd still like to keep console_log! available to users though as a convenience. for one-off logging, it is kind of nice.

@nilslice
Copy link
Contributor

nilslice commented Sep 1, 2021

leaving a reminder to take a look at https://docs.rs/console_log/0.2.0/console_log/

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

No branches or pull requests

2 participants