workers-rs
workers-rs copied to clipboard
Use `log` instead of `console_log!`
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.
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.
leaving a reminder to take a look at https://docs.rs/console_log/0.2.0/console_log/